ABSTRACT

With people’s higher demands on application programs, the single process cannot meet their expectations in many occasions. Thus, it becomes a trend to write programs by multi-process or multi-thread. During the design of a multi-process or multi-thread program, inter-process communication is necessary and there are many ways to execute it, like, Pipe, Mailslots, Clipped Board, Sockets, Message Queue, Memory-Mapped File, Shared Memory and so on [1]. Among the above methods, the most direct and fundamental one is to use Shared Memory which is, in fact, the basic of all other methods. Inter-process communication exists restriction when multi-process shares data. Program produces the desired effect by harmonizing the restriction.