Re: Locking problem
Re: Locking problem
- Subject: Re: Locking problem
- From: Lachlan Deck <email@hidden>
- Date: Tue, 14 Oct 2008 10:15:24 +1100
On 14/10/2008, at 7:47 AM, Mike Schrag wrote:
I tried adapting ERXEC to a JC scenario. I stripped away the
factory stuff, the delegate and properties (I made it always
autoLock), as well as lock coalescing. However, it does not help. I
get deadlocks and exceptions. There are two threads involved, one
instance of my WorkerThread class and AWT's event dispatch thread
(responsible for GUI painting).
Not sure how autolocking would work in Swing-land ... autolocking
and lockcoalescing only work because of the concept of a request-
response loop, which I'm assuming you don't have any concept of in
JC. For web-based, it knows it can automatically unlock all your
EC's at the end of the loop to prevent deadlocks, but I don't know
what that equivalent trigger point would be in JC?
I think the equivalent for JC are events. i.e., the RR loop begins and
ends with each event. So it's much more fine-grained than web-based
apps.
with regards,
--
Lachlan Deck
_______________________________________________
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