Inter Process Communication in Operating System (OS)
Inter Process Communication in OS
On this page we will learn about inter process communication in OS . There are two types of process – Independent processes and cooperating processes . Let’s just directly jump – in.
There are 2 types of process –
- Independent Processes – Processes that do not share data with other processes.
- Cooperating Processes – Processes that shares data with other processes.
The cooperating process requires Interprocess communication (IPC) mechanism.
Inter-Process Communication is the mechanism by which cooperating process share data and information.
The mechanism that will allow them to exchange data and information are the following:–
- Shared memory
- Message Passing
Types
Let’s look at few of the important points of each .Shared Memory
- A particular region of memory is shared between cooperating process.
- Cooperating process can exchange information by reading and writing data to this shared region.
- It’s faster than Memory Parsing, as Kernel is required only once, that is, setting up a shared memory . After That, kernel assistance is not required.
Message Parsing
- Communication takes place by exchanging messages directly between cooperating process.
- Easy to implement
- Useful for small amount of data.
- Implemented using System Calls, so takes more time than Shared Memory.
Prime Course Trailer
Related Banners
Get PrepInsta Prime & get Access to all 200+ courses offered by PrepInsta in One Subscription
Get over 200+ course One Subscription
Courses like AI/ML, Cloud Computing, Ethical Hacking, C, C++, Java, Python, DSA (All Languages), Competitive Coding (All Languages), TCS, Infosys, Wipro, Amazon, DBMS, SQL and others
Login/Signup to comment