I have loolked at the Distributed Reader-Writer Mutex by
Dmitry Vyukov, look
i have looked at it and i think there is a problem with this method, cause look
at the write lock function:
distr_rw_mutex_wrlock (distr_rw_mutex_t* mtx)
for (i = 0; i != mtx->proc_count; i +=
What is wrong with it ? suppose two or more writers wants to
lock this distributed rwlock
there is a possibility of a deadlock.
i think you have to use a critical section around the for loop to be able to
all the rwlocks at the same time to avoid the deadlock
Am i correct or not ?