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 |
Explain linking across directories?
Explain a zombie?
How can you get or set an environment variable from a program?
What is an advantage of executing a process in background?
What is IPC? What are the various schemes available?
Explain what is the process id for kernel process?
How to get or set an environment variable from a program?
write About fork()?
How to write the program on full-duplex communication on bidirectional(e.g using two pipes)?
Explain the advantage of executing a process in background?
Explain what are the system calls used for process management?
What Happens when you execute a command?