How to create n number thread in python.
i want iterate over the for loop and create a thread for iteration

sample code
for i in range(o,50):
i want to create 50 thread here which call the same function.
how start and stop each thread after completion .

you might find the syntax you need here.

http://docs.python.org/library/thread.html

you could make a for loop to make the 50 threads and make a nested for loop for each thread to call that function

Don't revive old threads. Hisan probably managed creating his n threads a long time ago.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.