Question
Download Solution PDFIdentify the circumstances under which pre-emptive CPU scheduling is used:
(a) A process switches from Running state to Ready state
(b) A process switches from Waiting state to Ready state
(c) A process completes its execution
(d) A process switches from Ready to Waiting state
Choose the correct option:
Answer (Detailed Solution Below)
Detailed Solution
Download Solution PDFConcept:
To understand pre-emptive scheduling, we first need to understand the process state diagram.
Scheduling is performed from when the process is taken from ready state on to the running state.
Hence, CPU scheduling decisions take place under one of four conditions,
- Process switch from Running state to Waiting state.
- Process switch from Running state to Ready state. (Statement a)
- Process switch from Waiting state to ready state. (Statement b)
- Process termination.
Statement c – No need for preemptive scheduling as execution is complete.
Statement d – Process cannot switch from Ready state to Waiting state.
Last updated on Jun 12, 2025
-> The UGC NET June 2025 exam will be conducted from 25th to 29th June 2025.
-> The UGC-NET exam takes place for 85 subjects, to determine the eligibility for 'Junior Research Fellowship’ and ‘Assistant Professor’ posts, as well as for PhD. admissions.
-> The exam is conducted bi-annually - in June and December cycles.
-> The exam comprises two papers - Paper I and Paper II. Paper I consists of 50 questions and Paper II consists of 100 questions.
-> The candidates who are preparing for the exam can check the UGC NET Previous Year Papers and UGC NET Test Series to boost their preparations.