If you want to implement a new thread using the threading module, you have to follow the following steps which is given below
Step-1 Define a new subclass of the Thread class.
Step-2 Override the __init__(self [,args]) method to add additional arguments.
Step-3 Then, override the run(self [,args]) method to implement what the thread should do when started.
Once you have created the new Thread subclass, you can create an instance of it and then start a new thread by invoking the start(), which in turn calls run() method.
For example you can see below code: