Exam 7: Synchronization Examples

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

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)

A thread using POSIX condition variables, a thread

(Multiple Choice)
4.9/5
(36)

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)

An advantage of using transactional memory is that

(Multiple Choice)
4.8/5
(33)

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)

Describe how a critical-section object functions.

(Essay)
4.7/5
(43)

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)

Explain the role of the variable preempt_count in the Linux kernel.

(Essay)
4.8/5
(34)

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

Filters

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