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 are the various schemes available?
What is ipc in unix?
what is the process id for kernell process
What is Inode.
About ln(linking)
What is the condition required for dead lock in unix system?
Tell me set-user-id is related to (in unix)?
What are the process states in Unix?
Which ipc is faster?
Please explain fork() system call?
How to write the program on full-duplex communication on bidirectional(e.g using two pipes)?
What is a Daemon?