site_archiver@lists.apple.com Delivered-To: Darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=Yi/YrED1zTfsbUCwVLwNunMaRn+a0 LHWwRz88monxcQ=; b=dKkX+SPGPrCL9Gf5kQuQHba76lVjUt2Y8KTZZa81JGeWA pQhZHFkHDKTgkAcYE/zDvRIh3syqIDrkqXR7UrBrmQKl8jFlkS1vFT2qy3xl4MU3 xOLpRZItir6GbM46q0UOEaGxHaMMvDK1HmSGh9GSvlYxBrsvDxIboP/xO+z7janE ApBQZk/G8EJNRxPlAU4Hy3Cdnpt/XamluCNZztx8SFhZbCqAMWTh7VG1jXw6AkPJ +Mb7EfKM9g6Tq7R9fuceGPJLZRvK//NewM/nNSeP0fPpRWVkF5cPMm8p3TFdpVfC TdPuBYV0d34I5TlRB6HgKK2iAlFNUQjcs4JFDMiUA==
On Jul 14, 2018, at 6:01 AM, Richard Schmitt <rschmitt@bluepeach.com> 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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.app... This email sent to site_archiver@lists.apple.com
participants (1)
-
Jens Alfke