MCQ
MCQ
10. What is a potential disadvantage of using interrupt disabling for mutual exclusion?
a. Increased efficiency of execution b. Compatibility with multiprocessor architectures
c. Noticeable degradation in execution efficiency d. Prevention of deadlock situations
11. Which programming language construct encapsulates variables, access procedures, and initialization
within an abstract data type?
a. Semaphore b. Monitor c. Mutex d. Condition Variable
19. Which programming construct is often easier to control than semaphores and provides equivalent
functionality?
a. Semaphore b. Mutex c. Monitor d. Event Flags
20. In the context of message passing, what is the purpose of indirect addressing?
a. The send primitive includes a specific identifier of the destination process.
b. Messages are sent to a shared data structure consisting of queues.
c. Messages are exchanged directly between processes.
d. Queues are referred to as mailboxes for temporary message storage.
Concurrency: Deadlock and Starvation
01. What is the primary characteristic of a deadlock in a system?
a. High CPU utilization b. Low memory usage
c. Permanent blocking of processes d. Efficient resource allocation
03. Consumable resources, such as signals and messages, are prone to deadlock when:
a. They are shared among processes. b. They are created and destroyed during execution.
c. They are preemptively allocated. d. They are used in a round-robin fashion.
10. The Dining Philosophers Problem is used to illustrate issues related to:
a. Starvation b. Deadlock c. CPU scheduling d. Memory fragmentation
11. In the context of deadlock, what does the "No Preemption" condition imply?
a. Resources can be forcibly removed from a process
b. Resources must be released and requested again
c. Only one process may use a resource at a time
d. A process may hold allocated resources while waiting for others
13. The resource allocation denial strategy, also known as the Banker's algorithm, is designed to:
a. Detect deadlock and take action to recover
b. Prevent deadlock by excluding one of the conditions
c. Make dynamic choices based on the current state of resource allocation
d. Eliminate circular wait in the system
19. What does the term "starvation" refer to in the context of concurrency?
a. Permanent blocking of processes
b. High CPU utilization
c. Processes waiting indefinitely for a resource
d. Simultaneous access to a resource by multiple processes
20. The UNIX mechanism that allows two processes to communicate on the producer-consumer model
using a first-in-first-out queue is called:
a. Shared Memory b. Pipes c. Messages d. Semaphores
Multiprocessor, Multicore, and Real-Time Scheduling
01. What is the key characteristic of a tightly coupled multiprocessor system?
a. independent processors b. Shared main memory.
c. Loosely connected clusters d. Functionally specialized processors.
03. What is the typical use of coarse and very coarse-grained parallelism?
a. Real-time applications b. Time-sharing systems
c. Parallel clusters d. Distributed networks
16. What is the primary concern of real-time operating systems regarding user control?
a. Limited control over task priority b. Fine-grained control over task priority
c. No user control d. Random control over task priority