Multiple Choice
Which variable(s) must be shared between threads to implement a producer/consumer relationship using a circular buffer?
A) variables that maintain read and write buffer locations
B) a variable that maintains a count of occupied buffers
C) a reference to a buffer object that holds data used by the readers/writers and provides access methods
D) all of the above
Correct Answer:

Verified
Correct Answer:
Verified
Q2: Monitors implement _ between threads of execution.<br>A)
Q3: Which type of monitor allows a thread
Q4: _ is important for preventing indefinite postponement
Q5: Monitor initialization _.<br>A) occurs each time a
Q6: In the readers/writers problem, cascading in readers
Q8: A thread can exit a monitor by
Q9: _ supports concurrent programming, in addition to
Q10: In the Java implementation of the producer/consumer
Q11: If the producer and consumer work at
Q12: Methods declared as _ encapsulate critical sections