3 ms·
On the contrary, the Global Interpreter Lock provides many thread-safety guarantees. These are based on the fact that threads can only be interrupted between, n
by bakery2k 8y ago
On the contrary, the Global Interpreter Lock provides many thread-safety guarantees. These are based on the fact that threads can only be interrupted between, not within, byte code instructions.
For example, a single list can safely be extended (as in `l += [1]`) concurrently from several threads.
- grandinj 8y agoAh, you are correct, it's the non-threadedness of the interpreter itself I was thinking of.