Python GIL prevent CPU usage to exceed 100% in multiple core machine?
问题 Many references say that, Python GIL lower down the performance of multi threading code in multi core machine, since each thread will need to acquire the GIL before executioin. In other words, it looks like GIL make a multi threading Python program to a single thread mode in fact. For example: (1) Thread A get GIL, execute some time, release GIL (2) Thread B get GIL, execute some time, release GIL ... However, after some simple experiments, I found that although GIL lower down the performance