msgget()

This is used for creating a new message queue, and for accessing an existing queue that is related to the specified key. If this is executed successfully, the function returns the identifier of the message queue:

       int msgget(key_t key, int flag);

Here, we have to address the following: