• 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: WOWorkerThread deadlocks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WOWorkerThread deadlocks


  • Subject: Re: WOWorkerThread deadlocks
  • From: Maik Musall <email@hidden>
  • Date: Tue, 11 Sep 2012 10:13:32 +0200


Am 11.09.2012 um 09:10 schrieb Maik Musall <email@hidden>:

Hi Alexis,

Am 10.09.2012 um 23:19 schrieb Alexis Tual <email@hidden>:

Note that I recently switched to Wonder for this project (using all the Wonder base classes), and since I did, this problem occurred more frequently. It's now almost once a day, and was about once a week before. I switched from MultiECLockManager to ERXEC with autolocking in the process.

I've seen you have long response pages, have you turned off autolocking for these special cases ?

Good point. I just checked: those are simple WOLongResponsePages that don't hold anything regarding EOF, just wait for the background worker thread to notify when it's done. The background workers all use manual locking, but some of them don't explicitly use my manual locking EC factory but use an autolocking EC and do manual locking on top. I'll correct that, thanks.

Hmm, seems I have the choice between
* use manual locking only in those background worker threads
* diss manual locks and rely on autolocking for them.

Worker threads are all implemented like this:

public void run() {
  localEC.lock();
  try {
    // heavy duty fetches, batchfetches, filtering and stuff that can take a minute
  } finally {
    localEC.unlock();
  }
}

What would you recommend? My ERXEC-subclass-factory can give me either type.

Maik
 _______________________________________________
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: WOWorkerThread deadlocks
      • From: Alexis Tual <email@hidden>
References: 
 >WOWorkerThread deadlocks (From: Maik Musall <email@hidden>)
 >Re: WOWorkerThread deadlocks (From: Chuck Hill <email@hidden>)
 >Re: WOWorkerThread deadlocks (From: Maik Musall <email@hidden>)
 >Re: WOWorkerThread deadlocks (From: Chuck Hill <email@hidden>)
 >Re: WOWorkerThread deadlocks (From: Maik Musall <email@hidden>)
 >Re: WOWorkerThread deadlocks (From: Alexis Tual <email@hidden>)
 >Re: WOWorkerThread deadlocks (From: Maik Musall <email@hidden>)

  • Prev by Date: Re: WOWorkerThread deadlocks
  • Next by Date: Rewrite WO app URL
  • Previous by thread: Re: WOWorkerThread deadlocks
  • Next by thread: Re: WOWorkerThread deadlocks
  • Index(es):
    • Date
    • Thread