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.

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is unix ipc?

940


How to write the program on full-duplex communication on bidirectional(e.g using two pipes)?

963


What is ipc port?

934


Explain a zombie?

999


Explain the advantage of executing a process in background?

872


What are two different models of ipc differentiate both?

982


What is the full form of ipc?

1077


What are the various schemes available in ipc?

911


Max relax-able permission value with out giving write permission to others?

950


Explain the system calls used for process management?

915


How to get or set an environment variable from a program?

910


Which ipc is the fastest in unix?

925


What are the various schemes available?

896


Explain how do you execute one program from within another?

918


Explain what is the process id for kernel process?

948