threads [create new threads thread mythread( "thread- " thread mythread( "thread- " start new threads thread start(thread start(add threads to thread list threads append(thread threads append(thread wait for all threads to complete for in threadst join(print "exiting main threadwhen the above code is executedit produces the following result starting thread- starting thread- thread- thu mar : : thread- thu mar : : thread- thu mar : : thread- thu mar : : thread- thu mar : : thread- thu mar : : exiting main thread multithreaded priority queue the queue module is primarily used to manage to process large amounts of data on multiple threads it supports the creation of new queue object that can take distinct number of items the get(and put(methods are used to add or remove items from queue respectively below is the list of operations that are used to manage queueget(it is used to add an item to queue put(it is used to remove an item from queue qsize(it is used to find the number of items in queue empty(it returns boolean value depending upon whether the queue is empty or not