Exam 7: Synchronization Examples
Exam 1: Introduction57 Questions
Exam 2: Operating-System Structures42 Questions
Exam 3: Processes55 Questions
Exam 4: Threads Concurrency59 Questions
Exam 5: Cpu Scheduling57 Questions
Exam 6: Synchronization Tools61 Questions
Exam 7: Synchronization Examples57 Questions
Exam 8: Deadlocks40 Questions
Exam 9: Main Memory58 Questions
Exam 10: Virtual Memory54 Questions
Exam 11: Mass-Storage Structure46 Questions
Exam 12: Io Systems30 Questions
Exam 13: File-System Interface50 Questions
Exam 14: File-System Implementation36 Questions
Exam 15: File-System Internals25 Questions
Exam 16: Security32 Questions
Exam 17: Protection32 Questions
Select questions type
Describe the dining-philosophers problem and how it relates to operating systems.
(Essay)
4.7/5
(39)
In the structure of the producer process shown in Figure 7.1, what would be a possible outcome if wait(empty) is replaced with signal(empty) and signal(full) is replaced with wait(full)?
(Multiple Choice)
4.9/5
(30)
A(n) ___________ is a sequence of read-write operations that are atomic.
(Multiple Choice)
4.8/5
(35)
Dispatcher objects in Windows are used for synchronization outside the kernel.
(True/False)
4.9/5
(32)
To lock the kernel on a single processor machine in Linux, kernel preemption is disabled.
(True/False)
4.9/5
(41)
A key difference between Reentrant locks and JAVA monitor's synchronized statements is that
(Multiple Choice)
4.9/5
(32)
Explain how Linux manages race conditions on single-processor systems such as embedded devices.
(Essay)
4.8/5
(37)
POSIX unnamed semaphores can be shared either only by threads with in a single process, or between processes.
(True/False)
4.8/5
(33)
In JAVA, calling a synchronized method always blocks the calling thread.
(True/False)
4.9/5
(34)
Explain the difference between the first readers-writers problem and the second readers--writers problem.
(Essay)
4.8/5
(30)
With reentrant locks, programming construct try and finally is used to ensure that unlock( ) is called even when an exception occurs in the critical section.
(True/False)
4.7/5
(33)
Alternate approaches such as transactional memory or OpenMP are useful, because
(Multiple Choice)
4.9/5
(39)
A critical section object in the user mode needs kernel intervention to ensure mutual exclusion.
(True/False)
4.8/5
(44)
Explain what will happen if a process A locks the associated mutex before calling pthread cond wait( ), but another process B does not lock the associated mutex before call pthread_cond_signal( ).
(Essay)
4.8/5
(30)
Critical-section compiler directive in OpenMP is generally considered easier to use than standard mutex locks, because
(Multiple Choice)
4.9/5
(43)
In a single processor system running Windows, when the kernel accesses a global resource, it
(Multiple Choice)
4.8/5
(34)
Showing 21 - 40 of 57
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)