Grokking Concurrency in Python
Vote

0% completed

​

Auditing Your Dependencies

Can one import statement make a program with eight busy threads use a single CPU? On the free-threaded build it can, even when the program never calls the imported module. Nothing fails: Python prints one warning, and from that moment the process runs with the GIL on.

It depends on how the package was compiled and on one declaration inside its compiled code, and both can be checked in advance.

Two Things a Compiled Package Needs

Plain Python packages run on either build, but NumPy and most database drivers also contain compiled code

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content