c++ - Strange issue running infinite while loop in EXE -


i facing strange issue on windows ce:

running 3 exes

1)first exe doing work every 8 minutes unless exit event signaled. 2)second exe doing work every 5 minutes unless exit event signaled. 3)third exe while loop running , in while loop work @ random times. while loop continues until exit event signaled.

now exit event global event , can signaled process.

the problem when run first exe works fine, run second exe works fine, run third exe works fine

when run exes third exe runs , no instructions executed in first , second.

as third exe gets terminated first , second starts processing. can case while loop in third exe taking cpu cycles? havn't tried putting sleep think can tricks. os should give cpu processes ... thoughts ???

put while loop in third exe sleep each time through loop , see happens. if doesn't fix particular probem, isn't ever practice poll while loop, , using sleep inside loop poor substitute proper timer.


Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -