How to know whether the message queue is empty or not.
Answer / 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 |
What is a Daemon?
How can a parent and child process communicate?
What are two different models of ipc differentiate both?
Explain what is the process id for kernel process?
Explain the initial process sequence while the system boots up?
Explain about daemon?
Explain how do you execute one program from within another?
What are various IDs associated with a process?
what about the initial process sequence while the system boots up?
What are the system calls used for process management:
Describe the initial process sequence while the system boots up?
In Unix inter process communication take place using?