How to create a GCD queue which is always serial, even on multi-core CPUs?

Viewed 6436

As far as I understand non-main-queue GCD queues, they are serial by default only on devices with single-core CPUs. But if a device has multiple cores, it can happen that blocks in the queue get executed simultaneously.

I want to use a serial GCD queue to overcome some concurrency problems and this queue must be serial even if there are multiple cores.

A developer mentioned this is possible somehow. How would I create such a always-serial queue?

2 Answers
Related