punjabtechnicaluniversity.blogspot.in
You may want to lock a resource only when data is being written and permit multiple clients to simultaneously read data when data is not being updated. The ReaderWriterLock class enforces exclusive access to a resource while a thread is modifying the resource, but it allows nonexclusive access when reading the resource. ReaderWriter locks are a useful alternative to exclusive locksthat cause other threads to wait, even when those threads do not need to update data.
0 comments:
Post a Comment
North India Campus