The Problem Of Inter Process Communication

965 WordsMar 10, 20164 Pages
Introduction Inter-process communication is crucial as processes need to communicate with one another often. This assignment aims to briefly explain the issues associated related to IPC. Race conditions will be explained as well as how to avoid them. Methods for mutual exclusion and synchronization mechanisms will be named and examined. Issues related to Inter-process communication According to Tannenbaum & Bos (2015:119), there are three issues related to interprocess communication, namely: How a process can pass information to another; the need to ensure no interference between two or more processes, and the use of proper sequences when there are dependencies present. Some of these issues can also be applied to threads. Race conditions According to Admin (More Process) (2013), race conditions occur due to output depending on the timing of certain processes which access the same shared data. For example, in printing, two process that run simultaneously can both queue a file in the same directory slot, causing one of the process’ output to be removed. According to Tannenbaum & Bos (2015:121), with the increasing numbers of cores, race conditions can be found more frequently. Race conditions can be avoided by the efficient use of the critical section in order to achieve mutual exclusion. A critical section or critical region is “a section of code, or collection of operations, in which only one thread may be executing at a given time” this is due to the code seeking access to
Open Document