How do I synchronize access to shared memory in LynxOS/POSIX?

前端 未结 4 1389
天命终不由人
天命终不由人 2020-12-05 03:17

I am implementing two processes on a LynxOS SE (POSIX conformant) system that will communicate via shared memory.

One process will act as a \"producer\" and the othe

4条回答
  •  失恋的感觉
    2020-12-05 04:17

    You can achive this with the shared memory/semaphore IPC.

    Here's an article with a nice example:

    http://www-personal.washtenaw.cc.mi.us/~chasselb/linux275/ClassNotes/ipc/shared_mem.htm

提交回复
热议问题