Series · C#
Multithreading
Five small C# programs from 2019 on making threads work together: signals, a parallel search, matrix products, a producer and its consumers, and prioritised groups.
01
Event Reset
Threads that wait for a signal: a ManualResetEventSlim per thread, one woken at random every second.
September 02, 2019
02
Arrays and Threads
Finding the minimum and maximum of twenty million numbers with n tasks, and timing it.
September 09, 2019
03
Matrices
Filling two matrices with a couple of threads each, then multiplying them in parallel.
September 16, 2019
04
Threads and Queues
A producer, several consumers and a bounded queue between them, with the main thread reporting.
September 23, 2019
05
Mutex groups and Tuples
Groups of threads taking prioritised tasks from a queue, with a mutex deciding who goes first.
September 30, 2019