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
Earlier than anything we must describe the file transfer area or DTA. With the intention of sequentially read we use the 14H function of the 21Hinterruption.The register to be read

classify computer system according to capacity. how they are different from computer according to the classification of technology.provide the comparative study also.

Question 1 What is web browser? List and explain the most common used web server Question 2 Discuss the anatomy of XML document Question 3 Discuss the various attr

Search strategies are evaluated along four main dimensions. Name those dimensions and briefly describe each one

FCFS algorithm also known as: • First-In-First-Out (FIFO) • Run-Until-Done • Run-to-Completion • Possibly, First-Come-First-Served algorithm is the easiest scheduling algorithm i

Perverse software: Perverse software is a program which causes hindrances in other programs execution in such a way resulting in modification or complete destruction of data w

Question 1 With an example, illustrate the concept of extern variable Question 2 What is the difference between pointer variable and simple variable? Question 3 Give the

I am using block matching algorithm to get the motion vectors, now, how can I get the depth map/depth value from the motion vectors?

QUESTION (a) Distinguish between passive and active attacks. (b) Give two reasons why it is important to organise security awareness programs for users. (c) Explain how s