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 |
Predict the output of the following program code main() { fork(); printf("Hello World!"); }
Explain the advantage of executing a process in background?
What is ipc port?
What is a zombie?
About ln(linking)
What are the various schemes available?
What are various IDs associated with a process?
What are the system calls used for process management?
How do you execute one program from within another?
What is the full form of ipc?
How to get or set an environment variable from a program?
Max relaxable permisssion value with out giving write permission to others?