Threading Module of python, Basic Computer Science

The latest threading module comprised with Python 2.4 provides much more powerful, high-level hold for threads than the old thread module.
The threading module depictions all the methods of the thread module and gives some additional methods:
• threading.activeCount(): Returns a number of thread objects that are in active mode .
• threading.currentThread(): Returns a number of thread objects in the caller''s thread control.
• threading.enumerate(): Returns a list of every thread objects that are at present active.
In addition to the methods, the threading module contains the Thread class that implements threading. The methods offered by the Thread class are in this way:
• run(): The run() method is the entrance point for a thread.
• start(): The start() method initiates a thread by calling the run method.
• getName(): The getName() method gives the name of a thread.
• setName(): The setName() method puts the name of a thread.
• join([time]): The join() waits for threads to finish.
• isAlive(): The isAlive() method ensures whether a thread is still executing
Posted Date: 5/5/2012 4:43:31 AM | Location : United States







Related Discussions:- Threading Module of python, Assignment Help, Ask Question on Threading Module of python, Get Answer, Expert's Help, Threading Module of python Discussions

Write discussion on Threading Module of python
Your posts are moderated
Related Questions
wrap that computes a customer water bill. The bill include Rs.100 water demand charge + a consumption charge of Rs.1.5 for every thousand gallons used. Consumption is figured from

Question 1 Briefly explain principles of effective navigation Question 2 Explain the terms URI and URL. Why should you use Relative URI? Question 3 What are the di

requirement analysis and specification for online voting

QUESTION 1 Describe the binary search algorithm using an example of your own. QUESTION 2 (a) By showing all your workings, give a big-O estimate for f(x) = (x + 1)lo

how to create 1000 random processes with time scales between 10 to 400 milliseconds

what are the phases of oo progarmming or java?

Python allows single (''), double (") and triple ('''''' or """) quotes to indicate string literals, as long as the similar type of quote starts and ends the string. The triple quo

defferentiat hardware and software and gave example

7. Name and explain the action in Conceptual Dependency which refers to a transfer of possession.

Two competing architectures were developed for improving the architecture of the central processing unit, and different processors are conventional to each one. Both had their powe