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 MSG
a msgrcvmsqid &msg msgsz
b msgrcv msqid &msg msgsz IPCNOWAIT
c msgrcvmsqid &msg msgsz
d All of the above
e None of the above
Which of the following calls will block?
a msgrcvmsqid &msg msgsz;
b msgrcv msqid &msg msgsz IPCNOWAIT
c msgrcvmsqid &msg msgsz
d msgrcvmsqid &msg msgsz
e None of the above
What message will this call receive: msgrcvmsqid &msg msgsz IPCNOWAIT
a MSG
b MSG
c MSG
d The call will return an error, and message will be received
e None of the above
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
