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
The signal( ) operation in the example using JAVA condition variables ensures that the thread with the thread number turn
(Multiple Choice)
5.0/5
(26)
What is the difference between software transactional memory and hardware transactional memory?
(Essay)
4.8/5
(30)
In JAVA, when a thread calls wait( ) inside a synchronized method,
(Multiple Choice)
4.9/5
(37)
Emergence of multicore systems has put greater emphasis on developing novel techniques for concurrency problems, because
(Multiple Choice)
4.7/5
(34)
JAVA provides support for both named and unnamed condition variables.
(True/False)
4.9/5
(31)
A difference between software transactional memory (STM) and hardware transactional memory (HTM) is that
(Multiple Choice)
4.8/5
(44)
Explain the key limitation of wait( ) and notify( ) operations of Java monitors that Java condition variables remedy.
(Essay)
4.8/5
(43)
Describe a scenario when using a reader-writer lock is more appropriate than another synchronization tool such as a semaphore.
(Essay)
4.8/5
(35)
In the solution for bounded buffer problem using JAVA monitors (Figure 7.9), functions insert( ) and remove( ) are synchronized to ensure that
(Multiple Choice)
4.9/5
(37)
Explain how can a POSIX unnamed semaphore be shared between multiple processes.
(Essay)
4.7/5
(38)
Transactional memory may particularly be useful for multicore systems.
(True/False)
4.8/5
(34)
A reader-writer lock gives preference to writer processes in the readers-writers problem.
(True/False)
4.8/5
(23)
A call to pthread_cond_signal() (used by POSIX threads, called Pthread) releases the associated mutex lock.
(True/False)
4.7/5
(37)
In the monitor solution for dining-philosophers problem (Figure 7.7), a philosopher may start eating
(Multiple Choice)
5.0/5
(37)
Each critical section must be assigned a different name in OpenMP.
(True/False)
4.8/5
(35)
Showing 41 - 57 of 57
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)