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 the system calls used for process management?
What is the condition required for dead lock in unix system?
What is daemon?
What is ln(linking)?
Explain what are the system calls used for process management?
Explain the initial process sequence while the system boots up?
Describe the initial process sequence while the system boots up?
What is the full form of ipc?
Please explain fork() system call?
Linking across directories?
How can you get or set an environment variable from a program?
what is the process id for kernell process