निम्न में से कौन-सी valid deadlock prevention scheme नहीं है?
(HTET PGT C.S. 2020)
Correct Answer: C
Explanation (EN): Options (a), (b), and (d) are valid deadlock prevention methods because they break necessary deadlock conditions. Option (c) is not a standard deadlock prevention scheme.
Explanation (HI): Options (a), (b) और (d) deadlock prevention की valid methods हैं क्योंकि ये deadlock की आवश्यक conditions को तोड़ती हैं। Option (c) कोई standard deadlock prevention scheme नहीं है।
निम्न में से कौन-सा Operating System में synchronization से संबंधित नहीं है?
(HTET PGT C.S. 2019)
Correct Answer: D
Explanation (EN): Bounded Buffer, Readers-Writers, and Dining Philosophers are classic synchronization problems. Belady's Anomaly is related to page replacement, not synchronization.
Explanation (HI): Bounded Buffer, Readers-Writers और Dining Philosophers classic synchronization problems हैं। Belady's Anomaly page replacement से संबंधित है, synchronization से नहीं।
निम्न में से कौन-सी deadlock के लिए आवश्यक condition नहीं है?
(HTET PGT C.S. 2018)
Correct Answer: B
Explanation (EN): The required conditions for deadlock are mutual exclusion, hold and wait, no preemption, and circular wait. Therefore preemptive is not required.
Explanation (HI): Deadlock की आवश्यक conditions हैं mutual exclusion, hold and wait, no preemption, और circular wait। इसलिए preemptive आवश्यक condition नहीं है।
Multi-threaded process के प्रत्येक thread के लिए अलग क्या होता है?
(CGPSC C.S. 2020 Set-A)
Correct Answer: C
Explanation (EN): All threads of a process share code, data, files, and address space, but each thread has its own user and kernel stack.
Explanation (HI): किसी process के सभी threads code, data, files और address space share करते हैं, लेकिन प्रत्येक thread का अपना अलग user और kernel stack होता है।
Semaphores का उपयोग किस problem को solve करने के लिए किया जाता है?
(CGPSC C.S. 2020 Set-A)
Correct Answer: C
Explanation (EN): As per the given answer key, semaphores are used for mutual exclusion, i.e. ensuring that only one process/thread accesses the critical section at a time.
Explanation (HI): दिए गए answer key के अनुसार semaphores का उपयोग mutual exclusion के लिए किया जाता है, अर्थात एक समय में केवल एक process/thread critical section में प्रवेश करे।
Multiple processes की तुलना में multiple threads के advantages क्या हैं? (i) Creation में कम समय (ii) Termination में कम समय (iii) Switching में कम समय (iv) Threads के बीच communication में kernel शामिल नहीं होता
(CGPSC C.S. 2020 Set-A)
Correct Answer: D
Explanation (EN): Threads are lighter than processes. They require less time for creation, termination, and switching, and communication among threads is more efficient as they share the same address space.
Explanation (HI): Threads, processes की तुलना में हल्के होते हैं। इन्हें बनाने, समाप्त करने और switch करने में कम समय लगता है, तथा threads के बीच communication अधिक efficient होता है क्योंकि वे same address space share करते हैं।
एक processor user mode process की instruction sequence execute करते समय n interrupts प्राप्त करता है। यदि execution के दौरान processor को कोई अन्य activity report नहीं होती, तो mode switches और process switches की संख्या क्या होगी?
(CGPSC C.S. 2020 Set-A)
Correct Answer: C
Explanation (EN): Each interrupt causes two mode switches: user to kernel and kernel back to user. Since the same process continues execution, there are no process switches. Hence the answer is 2n mode switches and 0 process switches.
Explanation (HI): प्रत्येक interrupt पर दो mode switches होते हैं: user से kernel और फिर kernel से user। क्योंकि वही process execution जारी रखती है, इसलिए process switch नहीं होता। अतः उत्तर 2n mode switches और 0 process switches है।
Parallelization के संदर्भ में Amdahl's law के अनुसार यदि P program का वह भाग है जिसे parallel बनाया जा सकता है और (1–P) वह भाग है जिसे parallel नहीं बनाया जा सकता, तो N processors का उपयोग करके अधिकतम speed-up क्या होगा?
(UGC NET C.S. June-2015 (Paper-II))
Correct Answer: C
Explanation (EN): According to Amdahl's law, maximum speed-up is 1 / ((1 - P) + P/N).
Explanation (HI): Amdahl's law के अनुसार अधिकतम speed-up 1 / ((1 - P) + P/N) होता है।
Peterson's solution critical-section problem का एक classic software-based solution है। यह अधिकतम कितने processes के लिए restricted है?
(Haryana PGT C.S. Asstt. Prof. 2024)
Correct Answer: A
Explanation (EN): Peterson's solution is restricted to two processes. It uses two shared variables: flag[] and turn.
Explanation (HI): Peterson's solution केवल दो processes के लिए लागू होता है। इसमें दो shared variables उपयोग होते हैं: flag[] और turn।
निम्न में से कौन-सा scheduling algorithm minimum average waiting time देता है?
(UKPSC PGT C.S. Asstt. Prof. 2017)
Correct Answer: B
Explanation (EN): Shortest Job First (SJF) selects the process with the smallest CPU burst time next, which gives the minimum average waiting time.
Explanation (HI): Shortest Job First (SJF) वह process पहले चुनता है जिसकी CPU burst time सबसे कम होती है, इसलिए यह minimum average waiting time देता है।