Operating System Fundamentals 37 Inter Process Communication The term
inter process communication refers to information being exchanged between two processes. Although the title of the section seems to suggest that the techniques described here are only for processes, they actually work equally for multiple threads within a single process. When two or more threads (regardless if they are in the same processor not) are trying to cooperatively work
on a solution to some problem, they need some sort of mechanism to exchange information so that they can decide which part of the problem will be solved by which thread, and to ensure that they do not both try to work on a single part of the problem at the same time. There maybe other situations where one thread would like to wait for the other thread to finish first before continuing on. All of these cases require some sort of communication so that the two threads can coordinate.
Share with your friends: