• 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: Looking for performance-oneway asynch call
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Looking for performance-oneway asynch call


  • Subject: Re: Looking for performance-oneway asynch call
  • From: Lindsey Spratt <email@hidden>
  • Date: Fri, 1 Nov 2002 09:55:40 -0600

Kubernan (is this a first name or a last name?),

Design snippet:
mainController
that runs in loop and receives client request

For each new request, check it and if the request
is in error, returns the error (synchronous).

If the request is available, create a new instance
of my own object and call a method in this instance.

In the new instance : create a new thread that do the stuff
for the client request. In the thread, informations of the work
are sent to the client using -(oneway void).

Is the main thread of the server waiting for the new thread that services the client request to finish, or is it possible for the server to spawn a thread to solve a client request and *while that spawned thread is running* to get the next client request and spawn another thread to service it, and so on? It's hard to tell from your design sketch, but if the server main thread waits on the new request-serving thread, this would be a problem.

Cheers,
Lindsey Spratt
http://homepage.mac.com/lspratt
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • [SOLVED] Re: Looking for performance-oneway asynch call
      • From: kubernan <email@hidden>
References: 
 >Re: Looking for performance-oneway asynch call (From: kubernan <email@hidden>)

  • Prev by Date: Stupid Newbie Font/Glyph Questions
  • Next by Date: Icon Madness -or- competing file types
  • Previous by thread: Re: Looking for performance-oneway asynch call
  • Next by thread: [SOLVED] Re: Looking for performance-oneway asynch call
  • Index(es):
    • Date
    • Thread