Named Pipes – Inter-Process Communication Linux
Named Pipes – Inter-Process Communication Linux
In this video we go over named pipes using mkfifo. Starting with a brief explanation of FIFO ( first in first out ) and LIFO ( last in first out ).
Followed by examples of how to use named pipes and some of the pitfalls that you would encounter such as broken pipe errors and blocked pipes.
We also cover having multiple processes writing to a single named pipe at the same time and the reason why having multiple readers of a named pipe is not such a good idea unless you are using a named pipe as a queue.
Named pipes are not frequently used but do have a certain efficiency going for them. As the data that is sent through a named pipe is stored in memory the main benefit is speed. So for any process that you would normally think of using a temporary file you could probably use a named pipe instead.
Subscribe: https://www.youtube.com/user/linuxleech?sub_confirmation=1
Blog: http://www.linuxleech.com
Twitter: http://www.twitter.com/linuxleech
Facebook: http://www.facebook.com/linuxleech
Google+: http://www.gplus.to/linuxleech
Views : 16428
linux