Pages

Showing posts with label Definitions. Show all posts
Showing posts with label Definitions. Show all posts

Thursday, 12 November 2009

CPU Scheduling

What is CPU scheduling?
  • Determining which processes run when there are multiple runnable processes.
  • Cpu scheduling is very important for system productivity and performance.
  • Necessary in multiprogramming environment.
What are possible process states?
  • Running - process is running on CPU.
  • Ready - ready to run, but not actually running on the CPU.
  • Waiting - waiting for some event like IO to happen.
Role of Dispatcher?

Dispatcher is a component of OS that is used to switch between processes.
It will stop the process,save the context of the stopped process,Load context of new process and resume the new process.

what is Dispatch latency?
Time taken for the dispatcher to stop one process and start another running process.

Role of CPU scheduler?
Whenever the CPU becomes idle a ready process must be selected for execution. The scheduler selects one process from the list of processes in memory that are ready to execute and allocates the cpu to one of the ready process.