When working with multi threaded applications, we tend to spawn worker threads which can lead to ineffective code when not done correctly, for example threads will not get reused and will be recreated for each work items. The solution to all those problems is a ThreadPool which reuses threads and queues work items that are consumed by those threads. This sort of implementation while simple can have side effects as unless the pool Queue is immutable it will have to be locked each time an item Enqueued and...
Strona głównaInne
Inne 4748 dni, 12 godzin, 43 minuty temu 213 pokaż kod licznika zwiń
Podobne artykuły:
- [EN] Fibers (series, part 1) | Passion of Programming in .NET
- Jak zagłodzić Timer?
- Dobra lektura o wątkach w C# [PL] | Maciej Zbrzezny: Programowanie i Technologie
- .NET Programmer | Zakolejkowanie wątków czyli słów kilka o ThreadPool
- Wielowątkowość w C# - klasa Timer - Alt Control Delete
- Piotr Zieliński » Code Review: Thread.Suspend