Re: Futex alternatives.
Re: Futex alternatives.
- Subject: Re: Futex alternatives.
- From: Jens Alfke <email@hidden>
- Date: Mon, 16 Jul 2018 09:43:11 -0700
> On Jul 14, 2018, at 6:01 AM, Richard Schmitt <email@hidden> wrote:
>
> futex is a user-mode implementation of a mutex (i.e. locking). Darwin
> doesn’t have a futex but it’s got ways to provide the locking.
From the blog post you linked to, it sounds like Darwin’s pthread_mutex is
essentially a futex, i.e. it doesn’t enter the kernel unless there’s contention:
>> In MacOS 10.6.6, a lock implementation is provided using the POSIX Threads
>> API. It’s a lightweight mutex which doesn’t enter the kernel unless there’s
>> contention.
—Jens
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden