Re: IOMalloc / IOFree while holding a mutex
Re: IOMalloc / IOFree while holding a mutex
- Subject: Re: IOMalloc / IOFree while holding a mutex
- From: chas williams - CONTRACTOR <email@hidden>
- Date: Wed, 16 Nov 2011 12:25:49 -0500
On Wed, 16 Nov 2011 07:10:13 -0800
Michael Crawford <email@hidden> wrote:
> It will also slow everything else down in the system, even if not
> CPU-bound, because all the tasks that depend on spinlock acquisition
> are designed with the assumption that it never takes very long to
> acquire one.
i believe this is why apple strongly suggests that you do not use spin
locks. the manual says "should be used only in places where a mutex
cannot be used".
the only reason to use a spinlock would be taking interrupts directly
which isnt very common (or suggested). even "interrupt handlers" in
darwin run in a sleep-safe context.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden