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 |
What are the system calls used for process management:
How to write the program on full-duplex communication on biderctional(e.g using two pipes)
Explain linking across directories?
What is semaphone?
what is the condition required for dead lock in unix sustem ?
Explain the initial process sequence while the system boots up?
What is the full form of ipc?
Please explain fork() system call?
What is an advantage of executing a process in background?
What is Inode.
What Happens when you execute a command?
About i-node numbers