- Joined
- Oct 9, 2009
- Messages
- 9
- Reaction score
- 0
Hi All
I am writing a multi-threaded program consuming a lot of CPU.
In order to reduce this consumption in Windows OS, putting a Sleep( 0 ) or Sleep( 1 ) will cause the switch to other running processes so that the CPU consumption will reduce a bit.
Do you know if in Linux can I do the same? And if I can't do you know how to achieve that?
Kind Regards
AFG
I am writing a multi-threaded program consuming a lot of CPU.
In order to reduce this consumption in Windows OS, putting a Sleep( 0 ) or Sleep( 1 ) will cause the switch to other running processes so that the CPU consumption will reduce a bit.
Do you know if in Linux can I do the same? And if I can't do you know how to achieve that?
Kind Regards
AFG