Back to Browse

Program for Inter-Process Communication using pipe() function

72.6K views
Mar 1, 2021
8:04

In this lecture on Inter Process communication using pipe, you will learn how to pass messages between two processes using open. pipe() function creates a unidirectional pipe for IPC. On success it return two file descriptors pipefd[0] and pipefd[1]. pipefd[0] is the reading end of the pipe. So, the process which will receive the data should use this file descriptor. pipefd[1] is the writing end of the pipe. So, the process that wants to send the data should use this file descriptor. 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-pipe-function/ Program on read/write system call: https://dextutor.com/write-read-system-call/ Program for fork() system call: https://dextutor.com/fork-system-call/ Reference Videos: 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 IPC using popen helpful? If so, please share. Let me know your thoughts in the comments. #linux #oslab #os #dextutor #ipc #pipe

Download

0 formats

No download links available.

Program for Inter-Process Communication using pipe() function | NatokHD