January 2012
Intermediate to advanced
396 pages
8h 16m
English
My bank has a token management system. So as you visit the bank, you have to collect a token. Each token has a number printed on it and the numbers show up against teller counter numbers, on a giant screen. It also shows which token numbers are still to be serviced.
This is a concurrent situation. We can simulate this either with a ConcurrentQueue or with a ConcurrentStack. Let's see how:

Also, add the following reference to your project and add them at the start of Form1.cs:
using System.Collections.Concurrent; ...
Read now
Unlock full access