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
Please explain fork() system call?
What are two different models of ipc differentiate both?
What are the various schemes available?
Which ipc is the fastest in unix?
Please describe the initial process sequence while the system boots up?
Explain how do you execute one program from within another?
What are the various schemes available in ipc?
Max relax-able permission value with out giving write permission to others?
Tell me set-user-id is related to (in unix)?
Explain what are the system calls used for process management?
What is fork()?
What is ipc port?
What is unix ipc?
Explain about daemon?
Which ipc is faster?