it is started with python designated as obsoleteand can only be accessed with _thread that supports backward compatibility how to find nth highest salary in sql syntaxthread start_new_thread function_nameargs[kwargsto implement the thread module in pythonwe need to import thread module and then define function that performs some action by setting the target with variable example:thread py import thread import the thread module import time import time module def cal_sqre(num)define the cal_sqre function print(calculate the square root of the given number"for in numtime sleep( at each iteration it waits for time print(square is ' ndef cal_cube(num)define the cal_cube(function print(calculate the cube of the given number"for in numtime sleep( at each iteration it waits for time print(cube is " *narr [ given array time time(get total time to execute the functions cal_sqre(arrcall cal_sqre(function cal_cube(arrcall cal_cube(function print(total time taken by threads is :"time time( print the total time outputcalculate the square root of the given number square is square is square is square is