Re: SharedEditingContext Write Locks?
Re: SharedEditingContext Write Locks?
- Subject: Re: SharedEditingContext Write Locks?
- From: Ben Trumbull <email@hidden>
- Date: Fri, 18 Nov 2005 11:34:35 -0800
At 9:35 PM -0500 11/17/05, Dov Rosenberg wrote:
Can anyone think of a reasonable strategy?
You can eliminate livelock by have the reader threads cooperate with
the updating process.
What I've seen work is that the SEC is updated on a schedule, every X
minutes. The threads check if an update is needed at the top of
their loop (run loop, event loop, request handling, etc). That's
controlled by a lock.
It doesn't matter who ends up with the lock, since everyone is
checking to see if the SEC needs updating.
--
-Ben
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden