A) It is a hardware instruction
B) It is executed atomically
C) Returns the original value of passed parameter
D) Set the new value of passed parameter to "TRUE"
E) Set the variable "value" the value of the passed parameter "new_value" but only if "value" =="expected"
Correct Answer
verified
True/False
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) entry section
B) critical section
C) exit section
D) remainder section
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) 0
B) 1
C) -1
D) none of the above
Correct Answer
verified
Essay
Correct Answer
verified
View Answer
Multiple Choice
A) No deadlock implies no starvation;
B) No starvation implies no deadlock;
C) Deadlock doesn't imply starvation;
D) Starvation implies deadlock.
Correct Answer
verified
Essay
Correct Answer
verified
View Answer
Multiple Choice
A) A counting semaphore can never be used as a binary semaphore.
B) A binary semaphore can never be used as a counting semaphore.
C) Spinlocks can be used to prevent busy waiting in the implementation of semaphore.
D) Counting semaphores can be used to control access to a resource with a finite number of instances.
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) entry section
B) critical section
C) exit section
D) remainder section
Correct Answer
verified
Multiple Choice
A) It is a hardware instruction
B) It is executed atomically
C) Returns the original value of passed parameter
D) Returns the new value of passed parameter
E) Set the new value of passed parameter to "TRUE"
Correct Answer
verified
Multiple Choice
A) release() followed by acquire()
B) acquire() followed by release()
C) wait() followed by signal()
D) signal() followed by wait()
Correct Answer
verified
Essay
Correct Answer
verified
View Answer
Multiple Choice
A) mutex lock is a hardware solution to critical-section problem
B) mutex lock is a higher-level software solution to critical-section problem
C) mutex lock suffers from busy waiting
D) the general rule of thumb is to use a mutex lock if the lock will be held for a duration less than two context switches
Correct Answer
verified
Essay
Correct Answer
verified
View Answer
Multiple Choice
A) uncontended
B) moderate contention
C) high contention
D) none of the above
Correct Answer
verified
Essay
Correct Answer
verified
View Answer
Multiple Choice
A) Mutual exclusion is preserved
B) The progress requirement is satisfied
C) The bounded-waiting requirement is met
D) Peterson's solution works for synchronization among more than two processes
Correct Answer
verified
Showing 21 - 40 of 61
Related Exams