Program for Inter Process Communication using Message Queues || msgget || msgsnd || msgrcv || IPC
In this lecture on Program for Inter Process Communication using Message Queues, you will learn how processes can communicate using message queues in Linux using C programming. Message queues are almost similar to named pipes with the exception that they do not require the opening and closing of pipes. But, they face one similar problem like named pipes; blocking on full pipes. Message queues send blocks of data from one process to another. There are 4 important functions that we will use in the programs to achieve IPC using message queues int msgget(key_t key, int msgflg); int msgsnd(int msqid, const void *msg_ptr, size_t msg_sz, int msgflg); int msgrcv(int msqid, void *msg_ptr, size_t msg_sz, long int msgtype, int msgflg); int msgctl(int msqid, int command, struct msqid_ds *buf); Subscribe - https://www.youtube.com/c/dextutor This lecture is part of the Operating System Lab playlist: https://www.youtube.com/playlist?list=PLlr7wO747mNp5nn0hteJFnt1rpdx6GG-_ For Program code and more details visit: https://dextutor.com/program-for-ipc-using-message-queues/ Reference Videos for Inter Process Communication: 1. IPC using pipe(): https://youtu.be/A7KRVxgnzZQ 2. IPC using named pipes: https://youtu.be/NHs42-rJeWU 3. IPC using Shared memory: https://youtu.be/Yb6pc_OU5x8 4. IPC using message queues: https://youtu.be/fjJliu9iViw 5. IPC using popen: https://youtu.be/lKdEgJAk27Q Tools Required: 1. Linux environment 2. Basic knowledge of C Language 3. gcc compiler installed Reference Links: Operating System Theory PPTs Link: https://dextutor.com/courses/operating-systems/ Operating System Programs: https://dextutor.com/courses/operating-system-programs/ Other Playlists: OS: https://www.youtube.com/playlist?list=PLlr7wO747mNojSVwJR1oYVs3Sq6iVziIk Linux Essential: https://www.youtube.com/playlist?list=PLlr7wO747mNqhqzZoiGhgBVsboYxTW4XQ RHCSA: https://www.youtube.com/playlist?list=PLlr7wO747mNrUoTuXhZ0REJw3hL4oWvLm Was this tutorial about Program for IPC using message queues helpful? If so, please share. Let me know your thoughts in the comments. #linux #oslab #os #dextutor #ipc
Download
0 formatsNo download links available.