We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d11ff62 commit 84ab5feCopy full SHA for 84ab5fe
book/src/07_threads/11_locks.md
@@ -58,7 +58,7 @@ drop(guard)
58
## Locking granularity
59
60
What should our `Mutex` wrap?\
61
-The simplest option would be the wrap the entire `TicketStore` in a single `Mutex`.\
+The simplest option would be to wrap the entire `TicketStore` in a single `Mutex`.\
62
This would work, but it would severely limit the system's performance: you wouldn't be able to read tickets in parallel,
63
because every read would have to wait for the lock to be released.\
64
This is known as **coarse-grained locking**.
0 commit comments