Assume the shared buffer is implemented as a circular array with two logical pointers: in and out. The variable in points to the next free position in the buffer; out points to the first full position in the buffer. Which of the following is true?
A) The buffer is empty when in == out; the buffer is full when ((in + 1) % BUFFER SIZE) == out;
B) The buffer is full when in == out; the buffer is empty when ((in + 1) % BUFFER SIZE) == out;
C) All the elements of the buffer can be used;
D) Both A and C
Correct Answer:
Verified
Q21: Explain why Google Chrome uses multiple processes.
Q22: Explain the fundamental differences between the UNIX
Q23: Which of the following IPC mechanism is
Q24: Describe two approaches to the binding of
Q25: Explain the purpose of external data representation
Q27: Explain the term marshalling.
Q28: Describe how UNIX and Linux manage orphan
Q29: The difference between a program and a
Q30: Which of the following is true in
Q31: Explain the terms "at most once" and
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents