Operating Systems MCQs for Competitive Exams - Part 5

Boost your exam preparation with Operating Systems MCQs for competitive exams. Practice multiple-choice questions on OS fundamentals, CPU scheduling, Linux, Unix, BIOS, and more.
81. Using Semaphores, each process has a critical section used to access the...
Correct! The "Critical Section" is the code segment where the process accesses shared Resources (like variables or files) that must be protected from concurrent access.
82. The global variable read count is used to keep the track of the number of...
Correct! In the Readers/Writers problem, read_count tracks how many processes are currently reading the object.
83. In readers/writers' problems, readers are processes that are not required to...
Correct! Multiple Readers can access the data simultaneously; they do not need to Exclude one another. Only Writers need exclusive access.
84. In the requirement for mutual exclusions a process remains inside its critical section for a/an...
Correct! To prevent starving other processes, a process must only stay in the critical section for a short, finite duration.
85. For synchronization, the communication of a message between two processes implies some level of...
Correct! When a process waits to receive a message, it is synchronized with the sender process.
86. The operating system must allocate and deal various resources for each active...
Correct! The fundamental unit of work in an OS is the Process, and resources are allocated to these processes.
87. During process interaction concurrent processes come into conflict with each other when they are...
Correct! Conflict (contention for resources) occurs during the actual execution phase of concurrent processes.
88. In Semaphores, two or more processors can cooperate by means of simple...
Correct! Semaphores use signal() and wait() operations to notify processes of resource availability.
89. A system state in which it allocates resources to each process so that a deadlock cannot occur is known to be...
Correct! A "Safe State" means there is at least one sequence of execution where all processes can finish without deadlocking.
90. A deadlock state is a/an...
Correct! Deadlock is the ultimate "Unsafe State," where the system is stuck and cannot proceed.
91. A race condition occurs when multiple processes or threads read and write...
Correct! A race condition happens when the final outcome depends on the timing of threads accessing shared Data Items.
92. In message a set of concurrent processes share a...
Correct! In indirect message passing, messages are sent to and received from a "Mailbox" (or port).
93. The monitor is a programming language that provides equivalent...
Correct! Monitors provide functionality equivalent to semaphores but are higher-level and easier to use correctly.
94. In monitor, the local data variables accessible only by...
Correct! Only the procedures defined within the Monitor construct can access its local variables (Information Hiding).
95. In special machine instruction, compare and Swap instruction to memory location against a...
Correct! CompareAndSwap checks if the memory location equals a "Test Value" (expected value) and swaps it if true.

Chapter 4: Introduction to Operating Systems

96. Dual mode of operating system has...
Correct! The two modes are User Mode and Kernel Mode (Supervisor Mode).
97. Multi-processor system gives a...
Correct! Multiprocessors (sharing the same clock/memory) are known as "Tightly Coupled" systems. Distributed systems are "Loosely Coupled".
98. Logical extension of multiprogramming operating system is...
Correct! Time-sharing (or multitasking) is the logical extension where the CPU switches so fast it feels like multiple programs run at once.
99. Multiprocessor system have advantage of...
Correct! The main advantage is increased throughput (more work done in less time). Expensive hardware is a disadvantage. Note: In some contexts, 'D' is selected if the quiz implies features rather than just "advantages," but strictly speaking, A is the advantage.
100. Scheduling of threads are done by...
Correct! The OS Scheduler is responsible for deciding which thread runs on the CPU at any given time.

Post a Comment

0 Comments