CPU scheduling questions and answers pdf
CPU scheduling questions and answers pdf: What is CPU scheduling? The method or procedure to schedule the processes to execute on a CPU is known as CPU scheduling or process scheduling. What is the difference between preemptive and Non-preemptive scheduling in a system? In non-preemptive scheduling, once the CPU is allocated to a process, the process holds (retains) the CPU until it switches from running state to waiting for the state, or running state to ready state, or waiting for the state to a ready state, or it terminates. In preemptive scheduling, a process may be released from the CPU by the operating system. The scheduler may suspend the execution of a process before it is blocked or terminated, to allocate the CPU to another process. What is a dispatcher? In multiprogramming and multitasking environments, switching of processes occurs so frequently that the operating system needs a special program (or module) to accomplish this task. This program is known as dispatcher. T...