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 condition required for dead lock in unix system?
Explain what is the process id for kernel process?
Which ipc is the fastest in unix?
What is daemon?
What is ipc in unix?
Explain about daemon?
How to write the program on full-duplex communication on bidirectional?
Tell me set-user-id is related to (in unix)?
Explain how do you execute one program from within another?
What is ipc port?
Please explain fork() system call?
Explain the initial process sequence while the system boots up?
What is the very first process created by kernel?
What are two different models of ipc differentiate both?
What is fork()?