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

Re: Blocking loops


  • Subject: Re: Blocking loops
  • From: Bill Bumgarner <email@hidden>
  • Date: Fri, 16 Jun 2006 11:11:55 -0700

On Jun 16, 2006, at 10:59 AM, A.M. wrote:
....
I am just disappointed because I spent a lot of time implementing the
non-blocking protocol and I will have to throw it into another thread- so
I could have used a blocking API anyway...

I can understand your frustration. In general, it is best to move any kind of data processing into a ***single*** additional thread (can't believe I'm saying that -- threads generally cause pain) and leave the main event loop free to serve the needs of the user as quickly as possible.


All is not lost.... the non-blocking protocol will likely yield benefits in the long term as you now have the flexibility to handle data from multiple sources or push other processing into that thread without worrying about I/O blocking that processing.

b.bum

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Blocking loops (From: email@hidden)
 >Re: Blocking loops (From: Nicko van Someren <email@hidden>)
 >Re: Blocking loops (From: "A.M." <email@hidden>)
 >Re: Blocking loops (From: Bill Bumgarner <email@hidden>)
 >Re: Blocking loops (From: "A.M." <email@hidden>)

  • Prev by Date: Re: objectFileHasPlusLoadMethod
  • Next by Date: NSTextView or NSTextField?
  • Previous by thread: Re: Blocking loops
  • Next by thread: Re: Blocking loops
  • Index(es):
    • Date
    • Thread