Multiple Choice
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
Correct Answer:
Verified
Q1: Which of the following process state will
Q2: Ordinary pipes in Windows require a parent-child
Q3: Which of the following contains memory allocated
Q4: Which of the following contains global data?<br>A)
Q5: All processes in UNIX first translate to
Q7: Which of the following is true in
Q8: Which of the following system calls is
Q9: Sockets are considered a high-level communications scheme.
Q10: Local Procedure Calls in Windows XP are
Q11: Describe how UNIX and Linux manage orphan