Difference between socket and pipe - operating system

What is the difference between socket and pipe?

A socket is a part of the OSI model that enables communication between different layers. Pipes are used in processing in the CPU. Communication in socket is bi directional while it’s unidirectional in pipes. Pipes increase productivity By processing multiple processes simultaneously.

What is the difference between socket and pipe?

Sockets:
- Socket is a part of OSI layer model. Communication among different layers is performed through sockets. Application layer serves through some sockets to the presentation layer and upper application layer.
- Sockets are used in Secure Socket Layer networks.
- Communication is in bi-directional in sockets.

Pipes:
- Pipes are related to processing in CPU.
- Pipes are the segments for processes in execution. By processing multiple processes simultaneously, the productivity can be improved.
- Communication is uni-directional in pipes.
Difference between THREAD, PROCESS and TASK - operating system
A program in execution is known as ‘process’. A program can have any number of processes. Every process has its own address space........
Differentiate between RAM and ROM - operating system
RAM: - Volatile memory - Electricity needs to flow continuously - Program information is stored in RAM.......
What is DRAM? In which form does it store data? - operating system
DRAM – Dynamic Random Access Memory. One of the read / write memory. DRAM is cheap and does the given task.......
Post your comment