Exam 7: Synchronization Examples

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

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)

A critical-section object in Windows

(Multiple Choice)
4.8/5
(27)

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)

Atomic integers in Linux are useful when

(Multiple Choice)
4.9/5
(24)

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
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)