Reader / Writer Lock Implementations and their Performance

Reader - Writer Lock Implementations

Implementation Additional information
Mutex / Critical Section
source System Lock Implementation
Classic Reader/Writer Lock
source
PTread Reader/Writer Lock
source
Evgeniy's Non-blocking Reader/Writer Lock
source Written by Evgeniy Makeev in early 1998.
Multiple readers - one writer interface class. Implements multiple readers one writer mechanism. Optimizes readers speed, provides fast readers synchronization when no writers are waiting. Useful when data is needed to be written/changed only occasionally but it is read often by multiple threads.
Stefan Gustafsson Reader/Writer Lock
source Original Post
Simple Reader/Writer Spin Lock (Posted by Pavel Lebedinsky)
source Posted by Pavel Lebedinsky <pll@INFRA2000.COM> on http://discuss.microsoft.com/SCRIPTS/WA-MSD.EXE?A2=ind0009A&L=ATL&P=R6194&D=0&I=-3
Evgeniy's Shared Counter R/W Spin Lock
source Linux atomic utilities implementation  
Win32 atomic utilities implementation


Windows Performance Results Linux Performance Results Doxygen



 Evgeniy Makeev
03/18/2008