Question: Consider the message queue below and then answer the questions which follow. Head points to the oldest message in the queue. Which of the following

Consider the message queue below and then answer the questions which follow. Head points to
the oldest message in the queue.
Which of the following calls will read message MSG21
(a) msgrcv(msqid, &msg, msgsz,-5,0)
(b) msgrcv (msqid, &msg, msgsz,2, IPC_NOWAIT)
(c) msgrcv(msqid, &msg, msgsz,-2,0)
(d) All of the above
(e) None of the above
Which of the following calls will block?
(a) msgrcv(msqid, &msg, msgsz,2,0);
(b) msgrcv (msqid, &msg, msgsz,1, IPC_NOWAIT)
(c) msgrcv(msqid, &msg, msgsz,0,0)
(d) msgrcv(msqid, &msg, msgsz,-5,0)
(e) None of the above
What message will this call receive: msgrcv(msqid, &msg, msgsz,0, IPC_NOWAIT)
(a) MSG6
(b) MSG21
(c) MSG1
(d) The call will return an error, and message will be received
(e) None of the above
 Consider the message queue below and then answer the questions which

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!