Re: Threading in Python, Please check the script

2015-01-14 Thread sohcahtoa82
On Tuesday, January 13, 2015 at 10:22:32 PM UTC-8, Robert Clove wrote: > Hi All, > > I have made a script in which i have started two thread named thread 1 and > thread 2. > In thread 1 one function will run named func1 and in thread 2 function 2 will > run named func 2. > Thread 1 will execute

Re: Threading in Python, Please check the script

2015-01-14 Thread Dave Angel
On 01/14/2015 07:11 AM, Robert Clove wrote: Can u provide me the pseudo script. You say you're a beginner. If so, you shouldn't be trying to use threads, which are tricky. I've been programming for 46 years, and I seldom have had to write multi-threading code. But this looks like a school

Re: Threading in Python, Please check the script

2015-01-14 Thread Robert Clove
Can u provide me the pseudo script. On Wed, Jan 14, 2015 at 4:10 PM, Dave Angel wrote: > On 01/14/2015 01:22 AM, Robert Clove wrote: > >> Hi All, >> >> > In any new thread, you should specify what versions of Python and OS > you're using. I'll assume Python 2.7 and Linux for this message. > >

Re: Threading in Python, Please check the script

2015-01-14 Thread Dave Angel
On 01/14/2015 01:22 AM, Robert Clove wrote: Hi All, In any new thread, you should specify what versions of Python and OS you're using. I'll assume Python 2.7 and Linux for this message. I have made a script in which i have started two thread named thread 1 and thread 2. In thread 1 one fu

Threading in Python, Please check the script

2015-01-13 Thread Robert Clove
Hi All, I have made a script in which i have started two thread named thread 1 and thread 2. In thread 1 one function will run named func1 and in thread 2 function 2 will run named func 2. Thread 1 will execute a command and wait for 60 seconds. Thread 2 will run only till thread 1 is running . Ag