Can anyone tell me what threading is in python and when will i ever use it in a real life example in one of my programs | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Can anyone tell me what threading is in python and when will i ever use it in a real life example in one of my programs

Threading in Python

3rd Mar 2017, 3:51 AM
Michael Addante
Michael Addante - avatar
2 Answers
+ 3
A Thread is a "flow" of how the program is executed Let's say you have your graphical interface with a lot of graphics(1), and a lot of data to work with at the same time(2), and python per se is also running (3), and a game engine (4) and so on. When you work All together with the same thread is going to be very slow. So you can create ways to manage all of this with a multithread. If you are starting programming don't worry about it, almost anything you do are cover, and there are plenty of ways to optimize your programs before multithread. But eventually you will be doing multithread easily with python.
12th Jun 2017, 5:49 PM
AldoS
AldoS - avatar
0
It is when you have multiple processes at once, for example in a game, or a large application
3rd Mar 2017, 1:01 PM
thomas smith
thomas smith - avatar