• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Locking problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Locking problem
      • From: Florijan Stamenkovic <email@hidden>
References: 
 >Locking problem (From: Florijan Stamenkovic <email@hidden>)
 >Re: Locking problem (From: Mike Schrag <email@hidden>)

  • Prev by Date: Re: ERXEntityClassDescription - Invalid class name for entity
  • Next by Date: Re: Locking problem
  • Previous by thread: Re: Locking problem
  • Next by thread: Re: Locking problem
  • Index(es):
    • Date
    • Thread