You seem to be worried that writing to part of a structure somehow "dirties" the rest so it's no longer thread-safe. That's not how it works, a structure is really just some data laid out contiguously ...
The ConcurrentStack and ConcurrentQueue classes, lock-free and thread-safe implementations of the Stack and Queue classes, build thread safe collections in .Net Thread safe collections were first ...
A monthly overview of things you need to know as an architect or aspiring architect. Unlock the full InfoQ experience by logging in! Stay updated with your favorite authors and topics, engage with ...