|
|
|
|
|
by CyberDildonics
1612 days ago
|
|
This is just goal post shifting. They said something that I thought was clear: you need file locks with read() and write(). I think you misunderstood that to mean only mmap can avoid data races. What they actually said was that using mmap allows atomics so you can avoid file locks. |
|
You need _synchronization_. Not necessarily one of mmap() or file locks.