• 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: WO 5.4, Ajax polling and multi-threading questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WO 5.4, Ajax polling and multi-threading questions


  • Subject: Re: WO 5.4, Ajax polling and multi-threading questions
  • From: Mike Schrag <email@hidden>
  • Date: Wed, 18 Feb 2009 09:26:09 -0500

hi mike,
please keep threads on the list ...

the issue is that i need to host the ajax direct actions in a WOA that already has EOF in the picture. The EOF related calls too are served through existing DAs.

if i just turn on multi-threading and do not synchronize the EOF calls, then if two or more requests came in for EOF related operations they would choke? [is what i understand]
if you're making ajax calls that (as I understood it from your original) are NOT touching eof, you're not going to lock against EOF ... they're just unrelated method calls. if you have two direct actions touching EOF, then yes, if you are .lock()ing properly, they will become single-threaded at one of the layers of EOF.

so if person A calls dontTouchEOFAction(), person B calls touchEOFAction(), and person C calls touchAnotherPartofEOFAction(), person A will not block or be blocked by anything, person B and C will be single-threaded and one will block the other until the database operation is complete.

ms

_______________________________________________
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: WO 5.4, Ajax polling and multi-threading questions
      • From: Anjo Krank <email@hidden>
    • Re: WO 5.4, Ajax polling and multi-threading questions
      • From: Karthik N <email@hidden>
References: 
 >WO 5.4, Ajax polling and multi-threading questions (From: Karthik N <email@hidden>)
 >Re: WO 5.4, Ajax polling and multi-threading questions (From: Mike Schrag <email@hidden>)

  • Prev by Date: Re: WO 5.4, Ajax polling and multi-threading questions
  • Next by Date: Re: Sproutcore
  • Previous by thread: Re: WO 5.4, Ajax polling and multi-threading questions
  • Next by thread: Re: WO 5.4, Ajax polling and multi-threading questions
  • Index(es):
    • Date
    • Thread