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

c) a reference to a buffer object that holds data used by the readers/writers and provides access methods

Computer Science & Information Technology

You might also like to view...

Job-blind multiprocessor scheduling.

For each of the following multiprocessor scheduling algorithms, use the classifications discussed early in this chapter to describe the type of multiprocessor system that would likely employ it. Justify your answers.

Computer Science & Information Technology

Once a GUI object is placed on a Windows Form object, dragging its corner sizing handle allows you to change its ____.

A. vertical border resolution B. height C. width D. center point

Computer Science & Information Technology