educative.io

Is it a typo? Should be "capacity one" instead of "size one"

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

Hi @Bohan_Zhang

Your question is very general. Can you please specify the paragraph or the code line you refer to? It would be beneficial.

Thanks.