News for hackers. Stuff that matters.
Re:Why Spinlocks Are Bad On iOS by jamessu on Wednesday December 23, 2015 @03:35PM (#10785494)
If a scheduler change breaks userland apps, that sounds like a scheduler bug to me... Any word on whether there is going to be a rollback/further scheduler changes to make spinlocks useful again?
Re:Why Spinlocks Are Bad On iOS by eridius on Wednesday December 23, 2015 @03:42PM (#10785522)
There will not. QOS was a very large and intentional change, and it's critical to getting great performance out of iOS and to make the fanless MacBook work at all.

In general, Apple has never encouraged anyone to use spinlocks, and as I mentioned at the end, as long as your critical section is really tiny and CPU-bound you're unlikely to actually have a problem in practice. Note that spinlocks have always had a problem with priority inversion (OSSpinLock's back-off algorithm is just to call syscall_thread_switch with a 1ms delay every 1024 iterations, which is not bad but doesn't solve all priority inversions anyway).

Re:Why Spinlocks Are Bad On iOS by gaze on Thursday December 24, 2015 @12:11PM (#10788794)
Those folks shouldn't have been using spinlocks!