Vivy33 / study-struct

0 stars 0 forks source link

ringbuffer #11

Closed littletiny closed 1 month ago

littletiny commented 1 month ago

多线程/多进程的cpu乱序不考虑了?

littletiny commented 1 month ago
  1. 单写单读的ringbuffer怎么用无锁的方式实现?
  2. 只用mmap的fd参数传-1的效果是创建匿名共享内存,fork场景下能不能省略shm_open?