Archive for the MultiThreading category

Vaughan

Why concurrency with async beats parallelism for scalability

.NET Core, Measuring, MultiThreading, Performance

Two terms that are often used interchangeably are concurrency and parallelism. It doesn’t help that in English, doing something concurrently means that you are doing more than one thing at a time. In software its a little more complicated. A good explanation on the difference that I have read before is as follows: Concurrency You […]

Read more
Vaughan

The problem with the BlockingCollection

MultiThreading, Testing

The BlockingCollection is a really powerful thread-safe collection that can be a really powerful tool to use where appropriate. Generally you could consider it where you have a common instance of a class accessed from multiple threads. It gives the class control on how many items are added or taken in a thread-safe way. Calling […]

Read more
Vaughan

Rx as part of your standard toolkit

MultiThreading, RX, Testing No Comment

For years I heard about RX in .NET but never really found a compelling reason to use it. About a year ago we started using it in my team and let me just say that things have changed. Now I don’t think theres a compelling reason NOT to use it as part of your standard […]

Read more

BMC logoBuy me a coffee