This link should help
http://stackoverflow.com/questions/5667793/how-does-a-read-write-mutex-lock-work?rq=1
-mithun
On Fri, Jun 29, 2012 at 7:30 AM, bharat b wrote:
> class lock
> {
> enum{"read", "write","free"}status;
> };
> By default, make status value as "free".
> Based on the request,
class lock
{
enum{"read", "write","free"}status;
};
By default, make status value as "free".
Based on the request, status value will be changed...
Based on the value of the status, we should decide whether another
read/write lock can be given.
Any suggestions ?
On Thu, Jun 28, 2012 at 4:46 PM, As