Reputation: 8917
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?
Upvotes: 6
Views: 13136
Reputation: 42047
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.
Upvotes: 4
Reputation: 93410
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.
Upvotes: 4