Training
×

Thread Scheduling

One processor core can execute one thread at a time. The scheduler is a part of the INtime kernel that is responsible for determining which thread to execute. The transition between threads is called a context switch or thread switch and is transparent to the threads.
 
Events cause threads to be scheduled by the INtime kernel. An event can be:
  • an interrupt
  • a signal from another thread
  • a signal from the operating system
While a thread is waiting for an event to occur, the operating system is free to schedule other threads for execution.