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

solution of two degree of freedom system with matlab program???

Briefly explain who a hacker is and what the activities of a hacker are?k question #Minimum 100 words accepted#

what is the logic diagram for the Boolean expression x''y + xy'' + xz

If you have to consider the installation of communications packages, the same questions have to be asked. (a) Does the software and the modem support the necessary transmission

information system providors

R e presentations/Languages Used: Many people are taught Artificial Intelligence with the opening line: "The three most essential things in Artificial Intelligence are repres

How do I change file permissions? Every time I execute chmod commands it tells me permission denied.

QUESTION (i) Write short notes on each of the following: a) Shelf reading b) Joint Fiction Reserve c) London and South-Eastern Library Region d) Document access

advantage and disadvantage of operating system