Quantcast
Channel: Active questions tagged operating-system+scheduling - Stack Overflow
Viewing all articles
Browse latest Browse all 209

Is using a hardware timer the only way to implement process scheduling?

$
0
0

I have read that an operating system implements scheduling using the following method:

  • The CPU must have a hardware timer that fires an interrupt every X milliseconds.
  • Once the timer interrupt fires, the timer interrupt handler will execute instructions that will make the CPU start executing another process (or another thread I guess I should say).

My question is: Is the method I just described the only way to implement scheduling?


Viewing all articles
Browse latest Browse all 209

Trending Articles