2 ms·
I just had an insight about Python's GIL. Python depends on the OS scheduler to allocate computing resources to tasks. But if multiple threads of Python are c
by stcredzero 17y ago
I just had an insight about Python's GIL. Python depends on the OS scheduler to allocate computing resources to tasks. But if multiple threads of Python are contending for the GIL, to the OS scheduler, this is Python doing "work".
HLL's could benefit from better support from the OS for scheduling and dealing with multiple cores.
- wmf 17y agoThat's why you're not supposed to use spinlocks in userspace. At least you should spin for a short time and then block.