Re: -[NSThread start] blocks ?!?
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