Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to create continuous thread

Status
Not open for further replies.

bhavanasi

Programmer
Jan 6, 2011
11
IN
How to create continuous thread

i created as

while 1:
thread.start_new_thread(self.run,())

it is working for one time but its giving an error ass
""""the first argument must be callable"""

so please help me for it,with out stack overflow problemsss
 
you have an infinite loop!
and for each pass, you (try to) start a new thread.
what is it you are trying to do?
and what is self.run?
 
what i need is ,i need to run a task continuously ,so the task data was placed in run method ,,

and i try to use thread for it...so i used the code as like thatt..

please suggest me how to write a code for continous task using threadssss..
 
still not clear on what you need but...

if you installed the demos with wx,
there are a couple of examples that may help you.

under 'Processes and Events',
check out the 'DelayedResult' and 'Threads' samples.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top