this post was submitted on 24 Oct 2023
1706 points (96.9% liked)

Memes

45903 readers
1725 users here now

Rules:

  1. Be civil and nice.
  2. Try not to excessively repost, as a rule of thumb, wait at least 2 months to do it if you have to.

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] uis@lemmy.world 6 points 1 year ago (1 children)

There is flock/fcntl for you. But locking is bad for performance too, especially in multithreaded enviroments.

[โ€“] vacuumflower@lemmy.sdf.org 2 points 1 year ago (1 children)

Yes, the thing is - it's a choice.

[โ€“] uis@lemmy.world 1 points 1 year ago

Then there is cooperative locking for you. It becomes a choice.