Designing a Queue to be a shared memory

前端 未结 2 2071
情书的邮戳
情书的邮戳 2021-02-04 12:06

I\'m attempting to design/implement a (circular) queue (in C) as a shared memory so that it can be shared between multiple threads/processes.

The queue structure is as

2条回答
  •  死守一世寂寞
    2021-02-04 12:47

    When I messed with Unix IPC, I followed Beej's guide to Unix IPC. It even has some jokes! You can go directly to the shared memory section. It has snippets explaining each step, and a full example at the end.

提交回复
热议问题