NTDLS.Semaphore
Provides various classes for to ensure sequential mult-threaded access to variables or sections of code.
Provides various classes for to ensure sequential mult-threaded access to variables or sections of code.
High performance active thread pool where work items can be queued as delegate functions. Allows you to easily enqueue infinite FIFO worker items or enforce queue size, wait on collections of those items to complete, and total control over the pool size. Also allows for multiple pools, so that different workloads do not interfere with one another.
For far too long I have listened to the likes of those who believe that the volatile modifier is the end-all answer to multi-threaded development.
A C console utility that attaches to a process by PID with DebugActiveProcess, leaving it suspended until the debugger detaches.
A minimal C++ program that converts the main thread to a fiber, creates a second fiber, and switches between them.
A console snippet that pins a process and thread to a specific CPU using affinity masks and ideal-processor calls.
A console snippet that spawns a second thread with CreateThread and lets both threads print in parallel.
A pair of C programs demonstrating cross-process synchronization with a named event — one waits on it, the other finds and signals it.