Skip to content

Commit

Permalink
Clarify unix.mapshared versus file locks (#1355)
Browse files Browse the repository at this point in the history
  • Loading branch information
bjornbm authored Feb 8, 2025
1 parent 7f6a7d6 commit 12cb066
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tool/net/help.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4864,9 +4864,9 @@ UNIX MODULE
end

It's possible to accomplish the same thing as unix.mapshared()
using files and unix.fcntl() advisory locks. However this goes
significantly faster. For example, that's what SQLite does and
we recommend using SQLite for IPC in redbean. But, if your app
using files and unix.fcntl() advisory locks. For example, that's
what SQLite does and we recommend using SQLite for IPC in redbean.
However, unix.mapshared is significantly faster and if your app
has thousands of forked processes fighting for a file lock you
might need something lower level than file locks, to implement
things like throttling. Shared memory is a good way to do that
Expand Down

0 comments on commit 12cb066

Please sign in to comment.