I am wondering about actual examples or instances of inter process communication (IPC) which we encounter on a daily basis (which happen under the hood or otherwise) while using our laptop/desktop. I have always read about these theoretically from a textbook.
For example:
Between a parent process and child processes: one example of this in Linux I know is when a shell starts other processes and we can kill those processes using their process IDs.
Between two unrelated (in hierarchy) but cooperating processes?
The inter-process communication examples include the following. Posix uses the shared memory technique. Windows XP uses message passing technique. Mach uses the message passing technique.
Interprocess communication allows one application to manage another and enables glitch-free data sharing. Interprocess communication helps send messages efficiently between processes.
There are two primary models of interprocess communication: shared memory and. message passing.
One way of doing IPC on the two cases you mentioned is using sockets.
I recommend taking a look at Beej's Guide to Unix Interprocess Communication for information and examples.
Some examples of IPC we encounter on a daily basis:
grep foo file | sort
And I am not even mentioning examples of IPC where the processes are on different computers.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With