बताइए कि किन परिस्थितियों में pre-emptive CPU scheduling उपयोग होती है: (A) Process Running से Ready state में जाए (B) Process Waiting से Ready state में जाए (C) Process execution complete करे (D) Process Ready से Waiting state में जाए
(UGC NET C.S. 4 December 2019 (Paper-II))
Correct Answer: A
Explanation (EN): Pre-emptive scheduling is associated with situations like Running to Ready and Waiting to Ready.
Explanation (HI): Pre-emptive scheduling Running से Ready और Waiting से Ready जैसी situations में लागू होती है।
General priority scheduling algorithm में low-priority jobs की indefinite blockage की समस्या का समाधान किससे होता है?
(KVS PGT C.S. 2017)
Correct Answer: C
Explanation (EN): Aging gradually increases priority of waiting jobs to avoid starvation.
Explanation (HI): Aging waiting jobs की priority धीरे-धीरे बढ़ाकर starvation को रोकता है।
एक free list में 6 KB, 15 KB और 12 KB के तीन memory areas हैं। अगली तीन requests 10 KB, 2 KB और 14 KB की हैं। कौन-सी memory allocation strategy तीनों requests को accommodate कर पाएगी?
(DSSSB PGT C.S. M/F 11.07.2021)
Correct Answer: B
Explanation (EN): Best Fit allocates the smallest suitable block each time and can accommodate all three requests here.
Explanation (HI): Best Fit प्रत्येक request के लिए सबसे छोटा suitable block चुनती है और यहाँ तीनों requests को accommodate कर सकती है।
यदि 64 segments हों और प्रत्येक का size 2KB हो, तो logical address में कितने bits होने चाहिए?
(DSSSB PGT C.S. (Male) 27.07.2018 (Shift-II))
Correct Answer: D
Explanation (EN): Segment number needs 6 bits and offset needs 11 bits, so total logical address bits = 17.
Explanation (HI): Segment number के लिए 6 bits और offset के लिए 11 bits चाहिए, इसलिए logical address = 17 bits।
जब हम Shortest Job First (SJF) scheduling algorithm लागू करते हैं, तो Process P2 को partial starvation का सामना करना पड़ता है और उसे execute होने के लिए अधिक समय तक प्रतीक्षा करनी पड़ती है। निम्न में से कौन-सा algorithm इस समस्या को संबोधित करता है?
(UGC NET Computer Science December 2024)
Correct Answer: C
Explanation (EN): Highest Response Ratio Next (HRRN) addresses starvation by increasing a process's response ratio as its waiting time increases.
Explanation (HI): Highest Response Ratio Next (HRRN) waiting time बढ़ने पर process का response ratio बढ़ाता है, इसलिए starvation की समस्या कम हो जाती है।
First Come First Serve (FCFS) scheduling algorithm के साथ इन processes का average turnaround time क्या है?
(UGC NET Computer Science December 2024)
Correct Answer: C
Explanation (EN): Using FCFS with the given arrival and burst times, the turnaround times are 5, 6, 8, 8, and 8 ms. Their average is 7.0 ms.
Explanation (HI): दिए गए arrival time और burst time के साथ FCFS लगाने पर turnaround times 5, 6, 8, 8, और 8 ms आते हैं। इनका औसत 7.0 ms है।
निम्न में से कौन-सी running state से waiting state में process state transition की condition नहीं है?
(DSSSB PGT Computer Science M/F 11.07.2021)
Correct Answer: C
Explanation (EN): Arrival of a lower priority process does not force the currently running process to go into waiting state.
Explanation (HI): किसी lower priority process के आने से currently running process waiting state में नहीं जाता।
तीन processes P1, P2, P3 पर विचार कीजिए, जिन्हें क्रमशः 24, 3 और 3 units CPU time चाहिए। यदि time quantum 4 units हो और Round Robin scheduling policy लागू हो, तो execution sequence क्या होगा?
(NVS PGT Computer Science 15.12.2022 (Shift-II))
Correct Answer: A
Explanation (EN): P1 gets the first quantum, then P2 and P3 finish in one quantum each. The CPU then keeps returning to P1 until it completes.
Explanation (HI): पहले P1 को quantum मिलता है, फिर P2 और P3 एक-एक quantum में पूरे हो जाते हैं। उसके बाद CPU बार-बार P1 को मिलता है जब तक वह पूरा न हो जाए।
निम्न में से किस state में process processor की प्रतीक्षा करता है?
(KVS PGT Computer Science 2017)
Correct Answer: C
Explanation (EN): In the Ready state, the process is prepared for execution and waits for CPU allocation.
Explanation (HI): Ready state में process execution के लिए तैयार रहता है और CPU मिलने की प्रतीक्षा करता है।
यदि time quantum 2 units है और ready queue में केवल 14 time units का एक ही job है, तो round-robin scheduling algorithm _____ context switches करेगा।
(KVS PGT Computer Science 2017)
Correct Answer: C
Explanation (EN): The 14-unit job is divided into 7 quanta of 2 units each. Excluding the initial dispatch and final completion, there are 6 context switches.
Explanation (HI): 14 units के job को 2-2 units के 7 quanta में बाँटा जाएगा। प्रारंभ और अंत को छोड़कर 6 context switches होंगे।