48 Brief Explanation about Thread and Threading in Python

Опубликовано: 23 Июль 2026
на канале: Free Tutorial TV
6
1

Hey guys,

welcome to Free Tutorial TV and Python tutorial for beginner .

in this video.

I'm going to give you a brief introduction about threads.

So first of all what is a threads.

So our thread is an individual and separate unit of execution that is the part of our process.

Now what is a process a process is simply our running program.

So for example if you run a browser it's a process.

If you run a video game it's a process.

Now inside this process.

Multiple threads can work together to accomplish a common goal and threads allows the program to run in.

That is the single most important benefit of using threats.

So let me give you an example.

So when you play a video game it has to handle few tasks.

For example it has to handle the graphics and the user interface.

And if you are playing the multiplayer game it has to handle the net working and all those things.

It has to handle in parallel because it has to remain responsive at all times.

So how does this video game handles those parallel tasks.

A simple answer is threads it can assign one thread for graphics one thread for using interface and other

threads for networking.

So by using threads The video game can always remain responsive and it can run that task in a parallel

way.

Now let me explain threads using this diagram so you can see this whole blue box.

Here is a process and the threads exists inside this process.

So in this process you can see three threads now inside those threads you can see there is a code and

local variable.

So a thread is a light weight process that exists inside the process.

Also a trade is a sequence of control flow that difference between that thread and the process is that

the thread exists entirely inside the process and share its resources.

So let's say inside this gray box we have the global variables that each thread will be able to share

those global variables.

**************************************************************************
please like and follow us in Facebook and Instagram.
facebook:   / technologytv  


Instagram:   / heikhamsingh  


Twitter:   / hanandkumarsing