Shared Memory Interprocess Communication Model | Producer-Consumer Problem

Sdílet
Vložit
  • čas přidán 9. 09. 2024
  • In shared memory model, the process wanting to talk to other processes creates a shared memory in its address space. The other processes wanting to talk to this process can attach this shared memory to their address space. 1 process writes the data to this shared memory while the other process can read it from the shared memory. Usually operating system does not allow 1 process to access the address space of another process, so the processes have shared memory should agree to remove this restriction and it is the job of the application programmer to handle all this - Operating system does not do this handling.
    One common problem which uses the shared memory IPC model is the Producer-Consumer model which is explained in this video.
    TextBook: amzn.to/3MpnwUX

Komentáře • 2