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 what are the system calls used for process management?
Explain the initial process sequence while the system boots up?
How to write the program on full-duplex communication on biderctional(e.g using two pipes)
What is ln(linking)?
What are two different models of ipc differentiate both?
How to write the program on full-duplex communication using 2 FIFOs
What are various IDs associated with a process?
What is Inode.
How to write the program on full-duplex communication on bidirectional?
Predict the output of the following program code main() { fork(); printf("Hello World!"); }
what is the process id for kernel process?
8 Answers IBM, ITI, Military Engineer Services, Remo, TATA,
Explain linking across directories?