0
3.7kviews
What is inter task communication? Describe the different methods of inter task communication.
1 Answer
0
274views

1) Intertask communication: Intertask communication involves sharing of data among task through sharing of memory space, transmission of data etc. It is executed using following mechanism
1. Message queues
2. Pipe
3. Remote procedure calls

1) Message queues: A message queue is an object used for intertask communication through which task send or receives messages placed in a shared memory. The queue may follow first in first out, last in first out or priority sequence. Usually a message queue comprises of an associated queue control block, name, unique ID, memory buffer, queue length, maximum message length and waiting list. A message queue of length 1 is called a mailbox.
2) Pipes: A pipe is an object that provides simple communication channel used for unstructured data exchange among task. A pipe does not store multiple messages but stream of bits. Also data flow from a pipe cannot be prioritized. There are two descriptors respectively at each end of the pipe for reading and writing. Data is written in to the pipes an unstructured byte streamed via one descriptor and read from the pipe in the FIFO order from the other.
3) Remote procedure call: It permits distributed computing where task can invoke the execution of the another task on remote computer.

Please log in to add an answer.