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 <bagana.bharatku...@gmail.com>wrote:

> 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, Ashish Goel <ashg...@gmail.com> wrote:
>
>>
>> Best Regards
>> Ashish Goel
>> "Think positive and find fuel in failure"
>> +919985813081
>> +919966006652
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Algorithm Geeks" group.
>> To post to this group, send email to algogeeks@googlegroups.com.
>> To unsubscribe from this group, send email to
>> algogeeks+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/algogeeks?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to algogeeks@googlegroups.com.
> To unsubscribe from this group, send email to
> algogeeks+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to