IPC programming :message queues
http://hi.baidu.com/j%5Ffo/blog/item/95f3f424c721aa328744f9b0.html/ Message queue control operation. /int msgctl (int msqid, int cmd, struct msqid_ds __buf);/ Get messages queue. /int msgget (key_t key, int msgflg);/ Receive message from message queue. /int msgrcv (int __msqid, void msgp, size_t msgsz, long int msgtyp, int msgflg);/ Send message to message queue. /int msgsnd (int msqid, const void msgp, size_t msgsz, int __msgflg);ipcs -t &nb
...