Thread: Delay for ms - CPU Usage

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Jan 2005
    Posts
    847
    Quote Originally Posted by DougDbug
    With Windows, the only way to "take over" the CPU, is with a kernel-mode program (driver).
    You could set any process to REALTIME_PRIORITY_CLASS with SetPriorityClass and your process would get higher priority then the OS but that would't be a good idea.
    Sleep() isn't accurate. The millisecond value passed to it should just be seen as a sugested sleep time.
    Last edited by Quantum1024; 10-27-2005 at 09:58 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Reduce CPU usage
    By patrick22 in forum Windows Programming
    Replies: 9
    Last Post: 07-10-2009, 02:13 PM
  2. questions on multiple thread programming
    By lehe in forum C Programming
    Replies: 11
    Last Post: 03-27-2009, 07:44 AM
  3. Net cpu usage of pthreads?!
    By mynickmynick in forum C++ Programming
    Replies: 15
    Last Post: 09-26-2008, 07:59 AM
  4. Calculating CPU Usage
    By vitaliy in forum Linux Programming
    Replies: 3
    Last Post: 08-21-2005, 09:38 AM
  5. CPU Usage so high
    By X PaYnE X in forum Windows Programming
    Replies: 9
    Last Post: 12-21-2003, 03:07 AM