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 zombie?
What is a Daemon?
What are various IDs associated with a process?
Linking across directories?
What is fork()?
Explain fork() system call?
What is Inode.
What are the system calls used for process management?
How can a parent and child process communicate?
Which ipc is the fastest in unix?
set-user-id is related to (in unix)
What are the various schemes available?