profile-img
Eduncle posted an MCQ
February 22, 2020 • 14:39 pm 0 points
  • UGC NET
  • Computer Science & Applications

Identify 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 : 

Choose Your Answer:
0 Attempts Submit Now
  • 0 Likes
  • 1 Comments
  • 0 Shares
  • comment-profile-img>
    Eduncle Best Answer

    According to Standard book of Galvin,
    CPU scheduling decisions take place under one of four conditions :
    1.    When a process switches from the running state to the waiting state, such as for an I/O request or invocation of the wait( ) system call.
    2.    When a process switches from the running state to the ready state, for example in response to an interrupt.
    3.    When a process switches from the waiting state to the ready state, say at completion of I/O or a return from wait( ).
    4.    When a process terminates.
    For conditions 1 and 4 there is no choice – A new process must be selected.
    For conditions 2 and 3 there is a choice – To either continue running the current process, or select a different one.

whatsapp-btn

Do You Want Better RANK in Your Exam?

Start Your Preparations with Eduncle’s FREE Study Material

  • Updated Syllabus, Paper Pattern & Full Exam Details
  • Sample Theory of Most Important Topic
  • Model Test Paper with Detailed Solutions
  • Last 5 Years Question Papers & Answers