xyz
xyz

Reputation: 8917

Examples of inter process communication(IPC)

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:

Upvotes: 6

Views: 13136

Answers (2)

Kim Stebel
Kim Stebel

Reputation: 42047

Some examples of IPC we encounter on a daily basis:

  • X applications communicate with the X server through network protocols.
  • Pipes are a form of IPC: grep foo file | sort
  • Servers like Apache spawn child processes to handle requests.
  • many more I can't think of right now

And I am not even mentioning examples of IPC where the processes are on different computers.

Upvotes: 4

karlphillip
karlphillip

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

Related Questions