In the “Follow Up Question” section of “Blocking Queue | Bounded Buffer | Consumer Producer” chapter
The author says “Consider a situation with two producer threads and one consumer thread all working with a queue of size one.” From the context, I think the author means “capacity one” instead of “size one” since size being one doesn’t restrict the behaviors of the lock but capacity does.
Any thoughts? Thank you