Jan 27, 2011 #1 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
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
Jan 28, 2011 #2 JustinEzequiel Programmer Jul 30, 2001 1,192 PH 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? Upvote 0 Downvote
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?
Jan 28, 2011 Thread starter #3 bhavanasi Programmer Jan 6, 2011 11 IN 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.. Upvote 0 Downvote
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..
Jan 28, 2011 #4 JustinEzequiel Programmer Jul 30, 2001 1,192 PH 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. Upvote 0 Downvote
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.