> >I have code that uses a rwlock, a mutex, a condition, and an
> atomic variable
> >to provide something approaching fairness (on W2K, I haven't
> gotten around
> >to testing this on Linux yet).  I can post it if anyone is interested.
>
> The OS/2 implementation (locks/os2/thread_rwlock.c) I wrote also avoids
> writer starvation in that it won't allow any new reader locks while a
> writer is waiting. It uses 1 mutex, 1 event semaphore. It should translate
> to Win32 quite easily. If you can spot any holes in my logic,
> please let me
> know :)

Hmmm...does this mean that the APR read/write locks are supposed to avoid
writer starvation?  Should the Windows code be fixed?

mma

Reply via email to