What size should I use for my queue? This is a question I have asked myself many times throughout my career. From my first year as a programmer all the way through to the current day and my thoughts on the matter have changed with my experience. This post is an attempt to help me structure my own thoughts on the matter. Next to lists and maps/dictionaries, queues are one of the most widely used data structures out there. Most often they are used to share data between processes or threads. It was while setting up a queue between two threads that I had the idea of writing up this post. Ordinarily I would use my experience and intuition to set an appropriate size. But on this occasion I thought I would test my own understanding of the subject by jotting down my thoughts in a structured way to see if it still sound reasoning. ...