Operating System

71. In a paging system, it takes 30 ns to search translation look-aside buffer (TLB) and 90 ns to access the main memory. If the TLB hit ratio is 70%, the effective memory access time is:
एक paging system में TLB search करने में 30 ns और main memory access करने में 90 ns लगते हैं। यदि TLB hit ratio 70% है, तो effective memory access time क्या होगा?
(UGC NET C.S. June-2017 (Paper-II))
A. 48 ns
B. 147 ns
C. 120 ns
D. 84 ns

Correct Answer: B

Explanation (EN): Effective access time = 0.7×30 + 0.3×(90+30) + 90 = 147 ns as per the given source.

Explanation (HI): दिए गए source के अनुसार effective access time = 0.7×30 + 0.3×(90+30) + 90 = 147 ns।

72. Match the following with respect to Input/Output management: A. Device controller B. Device driver C. Interrupt handler D. Kernel I/O subsystem
Input/Output management के संबंध में निम्न का मिलान कीजिए: A. Device controller, B. Device driver, C. Interrupt handler, D. Kernel I/O subsystem
(UGC NET C.S. June-2017 (Paper-II))
A. iii, iv, i, ii
B. ii, i, iv, iii
C. iv, i, ii, iii
D. i, iii, iv, ii

Correct Answer: D

Explanation (EN): According to the given source: Device controller → extracts information and stores it in data buffer, Device driver → performs data transfer, Interrupt handler → processing of I/O request, Kernel I/O subsystem → I/O scheduling.

Explanation (HI): दिए गए source के अनुसार: Device controller → information extract करके data buffer में store करता है, Device driver → data transfer करता है, Interrupt handler → I/O request process करता है, Kernel I/O subsystem → I/O scheduling करता है।

73. Which of the following scheduling algorithms may cause starvation? A. First-come-first-served B. Round Robin C. Priority D. Shortest process next E. Shortest remaining time first
निम्न scheduling algorithms में से किनसे starvation हो सकती है? A. FCFS B. Round Robin C. Priority D. Shortest process next E. Shortest remaining time first
(UGC NET C.S. June-2017 (Paper-II))
A. A, C and E
B. C, D and E
C. B, D and E
D. B, C and D

Correct Answer: B

Explanation (EN): Priority, shortest process next and shortest remaining time first may cause starvation.

Explanation (HI): Priority, shortest process next और shortest remaining time first starvation का कारण बन सकते हैं।

74. Distributed operating system consist of:
Distributed operating system किससे मिलकर बना होता है?
(UGC NET C.S. June-2017 (Paper-II))
A. Loosely coupled O.S. software on a loosely coupled hardware
B. Loosely coupled O.S. software on a tightly coupled hardware
C. Tightly coupled O.S. software on a loosely coupled hardware
D. Tightly coupled O.S. software on a tightly coupled hardware

Correct Answer: C

Explanation (EN): A distributed OS runs on loosely coupled hardware but provides a tightly coupled software view.

Explanation (HI): Distributed OS loosely coupled hardware पर चलता है लेकिन tightly coupled software view प्रदान करता है।

75. A memory management system has 64 pages with 512 bytes page size. Physical memory consists of 32 page frames. Number of bits required in logical and physical address are respectively:
एक memory management system में 64 pages हैं और page size 512 bytes है। Physical memory में 32 page frames हैं। Logical और physical address के लिए क्रमशः कितने bits चाहिए?
(UGC NET C.S. June-2017 (Paper-III))
A. 14 and 15
B. 14 and 29
C. 15 and 14
D. 16 and 32

Correct Answer: C

Explanation (EN): Logical address bits = log2(64×512) = log2(2^6×2^9) = 15. Physical address bits = log2(32×512) = log2(2^5×2^9) = 14.

Explanation (HI): Logical address bits = log2(64×512) = 15 और physical address bits = log2(32×512) = 14।

76. Some of the criteria for calculation of priority of a process are: A. Processor utilization by an individual process B. Weight assigned to a user or group of users C. Processor utilization by a user or group of processes. In fair share scheduler, priority is calculated based on:
किसी process की priority calculate करने के criteria हैं: A. किसी individual process द्वारा processor utilization B. किसी user या group को assigned weight C. किसी user या group of processes द्वारा processor utilization। Fair share scheduler में priority किस आधार पर calculate होती है?
(UGC NET C.S. June-2017 (Paper-III))
A. Only (A) and (B)
B. Only (A) and (C)
C. (A), (B), and (C)
D. Only (B) and (C)

Correct Answer: C

Explanation (EN): Fair-share scheduling considers all these criteria.

Explanation (HI): Fair-share scheduling में ये सभी criteria consider किए जाते हैं।

77. One of the disadvantages of user level threads compared to Kernel level threads is
Kernel level threads की तुलना में user level threads का एक disadvantage क्या है?
(UGC NET C.S. June-2017 (Paper-III))
A. If a user level thread of a process executes a system call, all threads in that process are blocked
B. Scheduling is application dependent
C. Thread switching doesn't require kernel mode privileges
D. The library procedures invoked for thread management in user level threads are local procedures

Correct Answer: A

Explanation (EN): In user level threads, a blocking system call by one thread can block all threads of the process.

Explanation (HI): User level threads में यदि एक thread blocking system call करे, तो process के सभी threads block हो सकते हैं।

78. Which statement is not correct about "init" process in Unix?
Unix के 'init' process के बारे में कौन-सा कथन सही नहीं है?
(UGC NET C.S. June-2017 (Paper-III))
A. It is generally the parent of the login shell
B. It has PID 1
C. It is the first process in the system
D. Init forks and execs a 'getty' process at every port connected to a terminal

Correct Answer: C

Explanation (EN): According to the given source, saying init is the first process in the system is not correct.

Explanation (HI): दिए गए source के अनुसार यह कथन सही नहीं है कि init system का first process है।

79. The Bounded buffer problem is also known as_____
Bounded buffer problem को और किस नाम से जाना जाता है?
(UGC NET C.S. November-2017 (Paper-III))
A. Producer-consumer problem
B. Reader-writer problem
C. Dining philosophers problem
D. Both (a) and (b)

Correct Answer: A

Explanation (EN): The bounded buffer problem is also called the producer-consumer problem.

Explanation (HI): Bounded buffer problem को producer-consumer problem भी कहा जाता है।

80. Consider a file currently consisting of 50 blocks. Assume that the file control block and the index block is already in memory. If a block is added at the end (and the block information to be added is stored in memory), then how many disk I/O operations are required for indexed (single-level) allocation strategy?
एक file में वर्तमान में 50 blocks हैं। मान लें कि file control block और index block पहले से memory में हैं। यदि अंत में एक block जोड़ा जाए और जोड़े जाने वाले block की information भी memory में हो, तो indexed (single-level) allocation strategy में कितनी disk I/O operations आवश्यक होंगी?
(UGC NET C.S. August-2016 (Paper-III))
A. 1
B. 101
C. 27
D. 0

Correct Answer: A

Explanation (EN): Since both the file control block and index block are already in memory, only one disk I/O is needed to write the new block information.

Explanation (HI): जब file control block और index block पहले से memory में हों, तो नए block की information लिखने के लिए केवल एक disk I/O चाहिए।