3 ms·
I believe GCD actually multiplexes green threads across a pool of posix threads, which wouldn't work for Python because of the GIL.
by danpalmer 10y ago
I believe GCD actually multiplexes green threads across a pool of posix threads, which wouldn't work for Python because of the GIL.
- richardwhiuk 10y agoCorrect. GCD has dispatch_queues, and each block on the dispatch queue will be executed on one of a pool of posix threads.
- mdomans 10y agoThat's correct, but looking at the Python internals it seems that working around the GIL is possible if having this pattern exposed to end programmer.