2
votes
Slim Read/Write Lock (SRWLock) – the fast alternative to TMultiReadExclusiveWriteSynchronizer
JEDI Windows API
– Another new feature of Windows Vista is the SRW-Lock. It has some advantages compared to a critical section or the TMultiReadExclusiveWriteSynchronizer of Delphi. Lets think about it. The SRWLock was made for the case of a shared resource which will be changed from one ore more threads while there are other threads which want to read the resource. Of course, this can be done with 1 or 2 critical sections. But 1 critical section will block the writing threads and 2 critical sections are 1 too much. Optimized for speed and occupying very little memory the SRWLock provides us the basic ...
Statistics
|
Visits by Source |
User Actions |




