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 is the very first process created by kernel?
Explain what is the process id for kernel process?
What are the various schemes available in ipc?
What are the various schemes available?
What is fork()?
Explain linking across directories?
What is ln(linking)?
Explain what are the system calls used for process management?
How to write the program on full-duplex communication on bidirectional?
What is ipc in unix?
Explain a zombie?
What are two different models of ipc differentiate both?
Tell me set-user-id is related to (in unix)?
What is the full form of ipc?
Explain how do you execute one program from within another?