Information Technology Reference
In-Depth Information
6. In
RCUlist::remove()
, suppose we attempt to maximize concurrency
by replacing the
WriteLock()
and
WriteUnlock()
calls with
ReadLock()
and
ReadUnlock()
calls and insert new
WriteLock()
and
writeUnlock()
calls at beginning and end of the code that is executed only if the
if
conditional test succeeds. The basic idea is to hold a read lock while
searching for the target item an to grab the write lock once it is found.
Will this work?