Presentation is loading. Please wait.

Presentation is loading. Please wait.

CSEN5322 Quiz-5.

Similar presentations


Presentation on theme: "CSEN5322 Quiz-5."— Presentation transcript:

1 CSEN5322 Quiz-5

2 1. An instruction that executes atomically ____.
Multiple Choices 1. An instruction that executes atomically ____. A) must consist of only one machine instruction B) executes as a single, uninterruptible unit C) cannot be used to solve the critical section problem D) All of the above 2. _____ can be used to prevent busy waiting when implementing a semaphore. A) Spinlocks C) Mutex lock B) Waiting queues D) Allowing the wait() operation to succeed 3. Windows XP, when accessing a global variable on a uniprocessor system, ____. A) masks interrupts for all interrupt handlers that may also access the variable B) uses spinlocks C) uses an adaptive mutex scheme D) uses mutex locks T/F 4. Mutex locks and binary semaphores are essentially the same thing. 5. If a resource-allocation graph has a cycle, the system must be in a deadlocked state.

3 1. An instruction that executes atomically ____.
Multiple Choices 1. An instruction that executes atomically ____. A) must consist of only one machine instruction B) executes as a single, uninterruptible unit C) cannot be used to solve the critical section problem D) All of the above 2. _____ can be used to prevent busy waiting when implementing a semaphore. A) Spinlocks C) Mutex lock B) Waiting queues D) Allowing the wait() operation to succeed 3. Windows XP, when accessing a global variable on a uniprocessor system, ____. A) masks interrupts for all interrupt handlers that may also access the variable B) uses spinlocks C) uses an adaptive mutex scheme D) uses mutex locks T/F 4. Mutex locks and binary semaphores are essentially the same thing. T 5. If a resource-allocation graph has a cycle, the system must be in a deadlocked state F


Download ppt "CSEN5322 Quiz-5."

Similar presentations


Ads by Google