Q1easyWhat is a Monitor in synchronization?AA high-level language construct that provides mutually exclusive access to shared variables.BA type of interrupt.CA hardware display device.DA tool to detect viruses.Check AnswerReveal Answer & ExplanationDiscuss on Board
Q2easyWhat is a Condition Variable in the context of Monitors?AA variable that stores the system time.BA mechanism allowing a thread to wait for a specific condition (like "buffer not full") while releasing the monitor lock.CA global variable.DA boolean flag for error handling.Check AnswerReveal Answer & ExplanationDiscuss on Board
Q3easyWhat does "Atomic Operation" mean in concurrency?AAn operation that is performed as a single, uninterruptible step.BAn operation that uses nuclear energy.CAn operation that requires root access.DAn operation that is broken into 100 steps.Check AnswerReveal Answer & ExplanationDiscuss on Board
Q4hardWhat happens if lock(A) is called twice by the same thread on a non- recursive mutex?AIt deadlocks (the thread waits for itself to release the lock).BIt crashes the OS.CIt unlocks.DIt ignores the second lock.Check AnswerReveal Answer & ExplanationDiscuss on Board
Q5mediumWhich of the following is a classic problem used to demonstrate the need for synchronization in Producer-Consumer systems?AThe Dining Philosophers Problem.BThe Page Replacement Problem.CThe Sleeping Barber Problem.DThe Bounded-Buffer Problem.Check AnswerReveal Answer & ExplanationDiscuss on Board
Q6hardWhich strategy involves killing a process to break a deadlock?ADeadlock Detection and RecoveryBDeadlock PreventionCBanker's AlgorithmDDeadlock AvoidanceCheck AnswerReveal Answer & ExplanationDiscuss on Board
Q7easyWhat is the primary requirement for a solution to the Critical Section Problem?AMutual Exclusion, Progress, and Bounded Waiting.BIt must run on all operating systems.CIt must be written in assembly.DIt must use a semaphore.Check AnswerReveal Answer & ExplanationDiscuss on Board
Q8easyWhat is a Spinlock?AA lock where the thread repeatedly checks (spins) if the lock is available.BA lock that puts the thread to sleep.CA lock that is never released.DA lock used only for file systems.Check AnswerReveal Answer & ExplanationDiscuss on Board
Q9mediumAnalyze the code below. What potential issue does this create? sync_example.c void thread1() { lock(A); lock(B); } APerformance boostBMemory leakCStarvationDDeadlockCheck AnswerReveal Answer & ExplanationDiscuss on Board
Q10easyWhat does the "Progress" condition in critical sections guarantee?AThat if no process is in the critical section, a process waiting to enter can enter without being blocked indefinitely.BThat the kernel never crashes.CThat the fastest process gets the resource.DThat processes are executed in the order of arrival.Check AnswerReveal Answer & ExplanationDiscuss on Board