• 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: Where do asynchronous API do their "work"?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Where do asynchronous API do their "work"?


  • Subject: Re: Where do asynchronous API do their "work"?
  • From: email@hidden
  • Date: Sun, 13 Nov 2005 14:55:46 +1100

You could use gdb and break on pthread_create?

I've never done that before and will have to go read about it. Are you
suspecting that things like NSURLConnection may spawn a pthread to do their
work?

Well, all threading on MacOS X is implemented using pthreads, so NSThread (or the Carbon equivalent) presumably has to call pthread_create at some point.


http://developer.apple.com/macosx/multithreadedprogramming.html

I have no real idea whether NSURLConnection in particular uses multiple threads or not... I doubt it, since it probably uses CFNetwork or similar, which is all runloop based, as far as I know.

Wade Tregaskis

    ICQ: 40056898
    AIM, Yahoo & Skype: wadetregaskis
    MSN: email@hidden
    iChat & email: email@hidden
    Jabber: email@hidden
    Google Talk: email@hidden

    http://homepage.mac.com/wadetregaskis/

-- Sed quis custodiet ipsos custodes?


_______________________________________________ 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: 
 >Re: Where do asynchronous API do their "work"? (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: Where do asynchronous API do their "work"?
  • Next by Date: Objective-C++ overload resolution no longer working?
  • Previous by thread: Re: Where do asynchronous API do their "work"?
  • Next by thread: Re: Where do asynchronous API do their "work"?
  • Index(es):
    • Date
    • Thread