Re: apache style squid?

From: Michael O'Reilly <michael@dont-contact.us>
Date: 10 Oct 1997 09:19:12 +0800

"Larmour, Jonathan" <Jonathan.Larmour@uk.origin-it.com> writes:
>
> Also don't forget one of the classic thread problems. With multiple
> readers and writers, if you have lots of readers (as very busy caches
> would), then there may not be a point at which the number of readers
> has returned to 0 and the writer can come in. So you should give
> priority to writers at all points.

No, in this if you only have readers, and there's only one possible
writer, you don't need to lock at all. You don't need to wait for the
readers to stop or any such thing. You just write it.
 

Michael.
Received on Tue Jul 29 2003 - 13:15:43 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:11:26 MST