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...

The Carol, Tracy & Leslie Realty Corporation specializes in locating homes for prospective buyers. Home information is stored in a database and is to be shown on an inquiry display screen. Design a G U I interface Web-based display to enter the following data fields, which are used to select and display homes matching the criteria. Keep in mind the features available for a G U I display. The design elements (which are not in any particular sequence) are as follows:

a. Minimum size (in square feet) b. Maximum size (in square feet, optional) c. Minimum number of bedrooms d. Minimum number of bathrooms e. Garage size (number of cars, optional) f. School district (a limited number of school districts are available for each area) g. Swimming pool (yes/no, optional) h. Setting (either city, suburban, or rural) i. Fireplace (yes/no, optional) j. Energy efficient (yes/no)

Computer Science & Information Technology

Which of the following statements is true?

a. Strings can be used in a switch statement’s controlling expression and in its case labels. b. Strings can be used in a switch statement’s controlling expression but not in its case labels. c. Strings cannot be used in a switch statement’s controlling expression but can be used in its case labels. d. Strings cannot be used in a switch statement’s controlling expression and cannot be used in its case labels.

Computer Science & Information Technology

In a one-to-many relationship, the related table is on the “one” side of the relationship. _________________________

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

A program written in a(n) procedural language consists of sequences of statements that manipulate data items. _________________________

Answer the following statement true (T) or false (F)

Computer Science & Information Technology