This is the tenth part of the Concurrency series. For your convenience you can find other parts in the table of contents in Part 1 – Mutex performance in .NET We have already seen how to implement custom mutex using memory mapped files and CAS operation. It has one drawback — it is not reentrant. … Continue reading Concurrency Part 10 — Reentrant mutex
Tag: Mutex
Concurrency Part 9 — Semaphores with custom locks
This is the ninth part of the Concurrency series. For your convenience you can find other parts in the table of contents in Part 1 – Mutex performance in .NET Last time we implemented custom mutex based on memory mapped files. We can use it to track who owns the lock in much simpler way. … Continue reading Concurrency Part 9 — Semaphores with custom locks
Concurrency Part 8 — Tracking mutex owner
This is the eighth part of the Concurrency series. For your convenience you can find other parts in the table of contents in Part 1 – Mutex performance in .NET We know how to use global mutexes to synchronize processes. However, there is a big drawback — we don’t know who owns the mutex and … Continue reading Concurrency Part 8 — Tracking mutex owner
Concurrency Part 6 – Abandoned mutex
This is the sixth part of the Concurrency series. For your convenience you can find other parts in the table of contents in Part 1 – Mutex performance in .NET Let’s start with the following code: We want to acquire a mutex. Since the operation might fail, we want to log the timeout, handle the … Continue reading Concurrency Part 6 – Abandoned mutex
Concurrency Part 5 – WinAPI mutex
This is the fifth part of the Concurrency series. For your convenience you can find other parts in the table of contents in Part 1 – Mutex performance in .NET Last time we called WinAPI through P/Invoke, today we are going to call it directly. Code Results The results are: As you can … Continue reading Concurrency Part 5 – WinAPI mutex