Click here to Skip to main content
15,867,756 members
Articles / Desktop Programming / Win32

Better Way to Sleep: Control Execution and Limit CPU Usage by your Threads

Rate me:
Please Sign up or sign in to vote.
4.79/5 (28 votes)
27 Aug 2008CPOL3 min read 104.2K   1.2K   50  
Here is a class that will help you to control the execution of your threads that involves looping/polling and also limits their CPU usage to a specified limit.

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

No alternatives have been posted.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions