• 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: -[NSThread start] blocks ?!?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: -[NSThread start] blocks ?!?


  • Subject: Re: -[NSThread start] blocks ?!?
  • From: Jens Alfke <email@hidden>
  • Date: Sun, 27 Sep 2015 10:05:48 -0700

> On Sep 27, 2015, at 6:50 AM, Jerry Krinock <email@hidden> wrote:
>
> I mean that if it is possible for -[NSThread start] to block indefinitely, it is not a useable API.

It’s not. The new thread will start when the kernel's scheduler gives it time. That’s technically indefinite, but realistically microseconds, or at most milliseconds. The point is that it’s not guaranteed to happen before the calling thread (or any other non-blocked thread in any process) gets to run.

—Jens
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


References: 
 >-[NSThread start] blocks ?!? (From: Jerry Krinock <email@hidden>)
 >Re: -[NSThread start] blocks ?!? (From: Quincey Morris <email@hidden>)
 >Re: -[NSThread start] blocks ?!? (From: Jerry Krinock <email@hidden>)
 >Re: -[NSThread start] blocks ?!? (From: Quincey Morris <email@hidden>)
 >Re: -[NSThread start] blocks ?!? (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: Continue application processing with mouse down on a menu
  • Next by Date: How to get remote metadata
  • Previous by thread: Re: -[NSThread start] blocks ?!?
  • Next by thread: Re: -[NSThread start] blocks ?!?
  • Index(es):
    • Date
    • Thread