Here are difference between Queues and Process. Unlock these today.
- 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?
Queuing process is part of inter-message-communication in Linux/Windows operating systems.– Srinimf
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.
Queues Vs. Process
- Queue is an intermediary file.
- Like files, you can provide read or write access
- Process will consume the data present in queues
- During receiving a message, a Server makes message status to BUSY
- When a message read by a Server, the status of the message will become the same or normal.
- During reading of message, the process will have exclusive access control. Once it reads it releases the queue for others.
5 Communication Elements
- pipe files
- virtual circuits
- 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.
You must be logged in to post a comment.