Suppose I have 5 independent process divided in two imaginay sets:
set1 | set2 |
--------------------- | |
p1 | p3 |
| | | |
p2 | p4 |
| | |
| p5 |
The processes inside each set communicate mutually quite often.
I mean p1 and p2 communicate mutually quite often
Similarly p3, p4 and p5 communicate mutually quite often.
But the two sets communicate less often with each other
I mean set of p1 and p2 communicate occasionally and rarely with other set of p3, p4 and p5.
Which IPC mechanism will be best to use inside each set for process in them and why?
Which IPC mechanism will be best to use for communication between the set and why?