Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to know whether the message queue is empty or not.



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

Post New Answer

More Unix IPC Interview Questions

What is Inode.

2 Answers   HCL,


how to create tree of processes. one parent and 3 childs.

1 Answers   HCL,


What are the system calls used for process management:

5 Answers  


Explain what is the process id for kernel process?

0 Answers  


What is the full form of ipc?

0 Answers  


What is ln(linking)?

0 Answers  


Explain the system calls used for process management?

0 Answers  


What Happens when you execute a command?

3 Answers  


What is fork()?

0 Answers  


Describe the initial process sequence while the system boots up?

4 Answers  


What is an advantage of executing a process in background?

2 Answers  


Please describe the initial process sequence while the system boots up?

0 Answers  


Categories