In an previous article on Overhead of explicit threads, we revisited why wrong usages of explicit threads could lead to overheads. Here is a summarized sketch note on the same for quick reading.
Tag: Threads
Revisiting Threads – Overhead of explicit threads
Recently I had the good fortune to read some of the invaluable books such as CLR via C# by Jeffery Rictcher, C# in Depth by John Skeet and Writing High Performance code in .Net by Ben Watson. It allowed me to revisit some of the basics on Threads and I thought to write down my … Continue reading Revisiting Threads – Overhead of explicit threads
Lock for Async Methods
Despite the intended nature, we seldom might come across situation where we would want to place a lock around an async statement and make it behave differently, especially when accessed from different threads. Let's try to mock the scenario first to demonstrate the issue. The lock-async Problem Consider the following code snippet. The output of … Continue reading Lock for Async Methods