How to know whether the message queue is empty or not.
Answer Posted / pavan
type the command: ipcs -m
you'll get no of messages in Message Q,
else
you can also use msqid_ds structure
i'e : define a structure variable of type
-> struct msqid_ds YOUR_VAR;
and access YOUR_VAR -> msg_qnum
it'll give no of messgaes on Q.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the various schemes available?
Please explain fork() system call?
What is fork()?
What is ln(linking)?
How to get or set an environment variable from a program?
Please describe the initial process sequence while the system boots up?
Explain the advantage of executing a process in background?
Explain what is the process id for kernel process?
What is unix ipc?
Explain a zombie?
What is the full form of ipc?
What are the various schemes available in ipc?
What is daemon?
Which ipc is the fastest in unix?
Explain about daemon?