From 4b02e92691ddf480507030ff4e58564180952b0e Mon Sep 17 00:00:00 2001 From: dawe Date: Mon, 18 Nov 2024 10:58:59 +0100 Subject: [PATCH] fix a small typo in 11_locks.md (#219) --- book/src/07_threads/11_locks.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/src/07_threads/11_locks.md b/book/src/07_threads/11_locks.md index bfac1f4..e0360d0 100644 --- a/book/src/07_threads/11_locks.md +++ b/book/src/07_threads/11_locks.md @@ -58,7 +58,7 @@ drop(guard) ## Locking granularity What should our `Mutex` wrap?\ -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`.\ This would work, but it would severely limit the system's performance: you wouldn't be able to read tickets in parallel, because every read would have to wait for the lock to be released.\ This is known as **coarse-grained locking**.