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 |
How do you execute one program from within another?
What Happens when you execute a command?
what about the initial process sequence while the system boots up?
what is the process id for kernell process
How can a parent and child process communicate?
About i-node numbers
Max relax-able permission value with out giving write permission to others?
How can you get or set an environment variable from a program?
How to know whether the message queue is empty or not.
Explain linking across directories?
What are the system calls used for process management?
What is a zombie?