Overview
Features
Download
Documentation
Community
Add-Ons & Services

Locking in AbstractCache

A general discussion forum.

Locking in AbstractCache

Postby rakesh » 02 Feb 2012, 23:45

Hello,

I was looking for any information related to using Mutex vs RWLock (I am looking for multiple-reader single-writer type system) and saw one post about potential for starvation with RWLock (the answer seemed to indicate it may have issues on Windows but not on POSIX). Is there any reason why you chose FastMutex instead of RWLock for the cache implementations? I may be mistaken, but I would have thought caches in general are used mostly in read mode from multiple threads, with infrequent writes (from multiple threads I agree). In such a scenario what lead to your decision to use FastMutex over RWLock. Unless I am mistaken, a FastMutex will serialise access to the cache regardless of whether it is a read or a write operation.

Thanks in advance for clarifying your thought process.
Rakesh
rakesh
 
Posts: 78
Joined: 13 Apr 2011, 17:43
Location: Chicago

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest