Linux: Differences Between Queue and Process

Prime differences between Queues and Process given here for your quick reference.

What is Process

  • A process is an 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?

Queues and Process both are part of inter message communication in any Linux/Windows operating systems.

– Srinimf

What is Queue

Queues are one kind of file. Each process sends messages to the Queue. When a message is written to queue, the other process reads the messages. This is basically a relation between queue and process.

  • Requester and Process, both are interchangeable.
  • The process, which 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.
Queue Vs Process

Queues Vs. Process

  1. Queue is an intermediary file.
  2. Like files, you can provide read or write access
  3. Process will consume the data present in queues
  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. During reading of message, the process will have exclusive access control. Once it reads it releases the queue for others.

5 Prime Elements Through Which Communication Happens in Linux Systems

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


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.