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 |
Please describe the initial process sequence while the system boots up?
What is a zombie?
what is the process id for kernell process
what is the very first process created by kernell
Please explain fork() system call?
How to write the program on full-duplex communication using 2 FIFOs
What is IPC? What are the various schemes available?
what is the condition required for dead lock in unix sustem ?
Linking across directories?
What are the various schemes available in ipc?
Explain the advantage of executing a process in background?
What are the various schemes available?