3 ms·
I wonder how this library compares agains Apple's Grand Central Dispatch. I guess they don't contain 1:1 functionality, but both libraries seem to be meant to
by wsc981 15y ago
I wonder how this library compares agains Apple's Grand Central Dispatch.
I guess they don't contain 1:1 functionality, but both libraries seem to be meant to make threading easier. I guess GCD is a more complete solution due to the addition of queues.
- loeg 15y agoThey're different beasts entirely. One key distinction is that GCD requires kernel support, while lthread and friends simply sit on top of any pthread-compatible system. As I understand it, GCD is based on an old systems idea (1991): https://en.wikipedia.org/wiki/Scheduler_activations https://en.wikipedia.org/wiki/Scheduler_activations It also has some auxiliary stuff (compiler-level support for C closures (Clang blocks), etc…) to "make threading easier," like you say.