Communication method among multiple processes
The invention discloses a communication method among multiple processes, comprising the following steps of: trying to open a shared memory; if the shared memory cannot be opened, creating the shared memory by the process, and writing shared memory information into a static area of the shared memory;...
Gespeichert in:
Hauptverfasser: | , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention discloses a communication method among multiple processes, comprising the following steps of: trying to open a shared memory; if the shared memory cannot be opened, creating the shared memory by the process, and writing shared memory information into a static area of the shared memory; acquiring a temporary service process permission according to mutual exclusion of the temporary service process permission, writing the self address and mutual exclusion into a dynamic area and waiting other processes to add into a multiple process communication system; if the shared memory can beopened, accessing the static area in the shared memory to acquire the shared memory information; obtaining an access permission of the dynamic area according to reading and writing mutual exclusion of the dynamic area and acquiring the address of the temporary service process and the mutual exclusion of the temporary service process from the dynamic area; and releasing the access permission of the dynamic area, realizing |
---|