Question
Option 3 : 12 ms / 12 मिलीसेकंड
Detailed Solution
सही उत्तर 12 ms / 12 मिलीसेकंड है।
Question:
Preemptive priority scheduling is used (smaller number means higher priority): P1 (arrival 0, burst 6, priority 3), P2 (arrival 1, burst 4, priority 1), P3 (arrival 2, burst 2, priority 2). What is the turnaround time of the lowest-priority process P1? / प्रीएम्प्टिव प्रायोरिटी शेड्यूलिंग में (छोटी संख्या = उच्च प्राथमिकता): P1 (0,6,प्रा.3), P2 (1,4,प्रा.1), P3 (2,2,प्रा.2)। निम्नतम प्राथमिकता वाली प्रोसेस P1 का टर्नअराउंड समय क्या है?
Correct Answer: 12 ms / 12 मिलीसेकंड
Timeline: P1 runs 0-1; at 1, P2 (priority 1) preempts and runs 1-5; at 5, P3 (priority 2) outranks P1 (priority 3) and runs 5-7; P1 resumes 7-12. P1 completes at 12, so turnaround = 12 - 0 = 12 ms. This repeated delay of P1 illustrates starvation of low-priority processes; 6 ms is only its waiting time. / समय-रेखा: P1 (0-1), P2 (1-5), P3 (5-7), P1 (7-12)। P1 समय 12 पर पूर्ण; टर्नअराउंड = 12 मि.से.। यह निम्न-प्राथमिकता प्रोसेस के स्टार्वेशन को दर्शाता है।