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
how do you let kids learn on it

Depth First Search-Artificial intelligence: Depth first search is  similar to breadth first, except that things are added to the top of the plan rather than the bottom. In our

#que411stion..

Question Write the steps for applying animations. Prepare a presentation of 5 slides in a creative for any topic in your semester (research methods/Business strategy/Financial

Client/ Server Architecture:   As the capacity and power of personal computers improved, the need to share the processing demands between the host server and the client workst

Development of UNIX: The original UNIX development was performed on a Digital PDP-7 minicomputer and later moved to a PDP-11 minicomputer, the forerunner of the VAX computer.

The following data set describes whether a given coordinate is on land owned by XX government. (x,y) | Class ------------------------ (1.5,6) | owned (2,5) | owned (3,4) | owned (

How Much Insurance? Many financial experts advise that property owners should insure their homes or buildings for at least 80 percent of the amount it would cost to replace the st

what are the significance of telecommunications deregulation

what are the factors and criteria for computer (from business point of view)?