sscasc@tumkur run(method which is also available to sub class every thread will run this method when it is started by overriding this run we can make threads run our own run(method examplefrom threading import thread import time class mythread(thread)def run(self)for in range( , )print("\nthread % going to sleep for seconds itime sleep( print("\nthread % is awake now it =mythread( start( join(outputthread going to sleep for seconds thread is awake now thread going to sleep for seconds thread is awake now thread going to sleep for seconds thread is awake now thread going to sleep for seconds thread is awake now thread going to sleep for seconds thread is awake now creating thread without creating sub class to thread class we can ceate an independent class say mythread that does not inherit from thread class then create object of mythread next step is to create thread by creating object to thread class and specifying the method of the my thread class as its target as =thread(target=obj sleep,args)examplefrom threading import thread import time class mythreaddef sleep(self)for in range( , )print("thread % going to sleep for seconds itime sleep( print("thread % is awake now iobj=mythread( =thread(target=obj sleep() start(outputthread going to sleep for seconds thread is awake now thread going to sleep for seconds sp_python programming