Queue Vs Process Story Inter-process Communication

In this post, I have explained why queues and processes required to carry communication between the two processes.


What is a Process in Any Operating System

In computing, a process is the instance of a computer program that is being executed by one or many threads. It contains the program code and its activity. 

It is clear that ‘a small program’ you can tell as ‘process’. So, an operating system is a mix of small programs.

Now you got what is process. Right?

The Queues Vs Process kind of communication is very common in Windows/Linux operating systems.

Top Methods that Help in the Communication

  1. events
  2. queues
  3. pipe files
  4. virtual circuits
  5. shared virtual memory.

Queues are one kind of File. Internally, each process sends the messages to the Queue. These Queues will then ready by another process.

Queue Vs Process

Requester and Process, both are interchangeable.

The process which sends a message or puts a message in the queue is called requester.

The process which receives a message from the Queue is called Server.

So queues are common and available to any process with in the system.

Queues Vs Process

  1. Queues are an intermediary file.
  2. Like files, you can control like Read or Write Access.
  3. The process is another program that consumes Queue data.
  4. During receiving a message, a Server makes message status to BUSY
  5. When a message read by a Server, the status of the message will become the same or normal.
  6. Message reading is exclusive for that process. Once the reading is over, the message then available to the other process to consume.

Summary

Queues and process are the top methods in inter-process communication.

You can find some of the commands on how to communicate with Queues and Server read here.

Related Posts

Author: Srini

Experienced software developer. Skills in Development, Coding, Testing and Debugging. Good Data analytic skills (Data Warehousing and BI). Also skills in Mainframe.