First page Back Continue Last page Overview Image

Threads in Python

Zwei Module unterstützen in Python die Benutzung von Threads:

Due to the Global Interpreter Lock, only one thread can execute Python code at once (even though certain performance-oriented libraries might overcome this limitation). If you want your application to make better use of the computational resources of multi-core machines, you are advised to use multiprocessing. However, threading is still an appropriate model if you want to run multiple I/O-bound tasks simultaneously.

!