DEV Community

Kalidas
Kalidas

Posted on

Is python language multithreaded or not?

I'm not sure the python is multithread supported technology or not, Can someone please clarify the doubt

Top comments (2)

Collapse
 
cicirello profile image
Vincent A. Cicirello

Yes, Python has threads, but using multiple threads in Python will give you only concurrency but not parallelism due to the so-called GIL (global interpreter lock).

If you want parallelism in Python, you need multiple processes instead of multiple threads. Check out the multiprocessing module for details of how to use multiple processes in Python.

Collapse
 
mteheran profile image
Miguel Teheran

Same JavaScript I guest