Re: need some help with threading module...

From: M.E.Farmer (mefjr75_at_hotmail.com)
Date: 12/30/04


Date: 30 Dec 2004 10:27:42 -0800

chahnaz.ourzikene wrote:
> Hi,
>
> I fixed the code, it runs under Linux but not under windows 0_o ??! i
guess
> windows and Linux do not handle threads the same way.
>
> However, i don't have the result i excpect.
What did you expect? This is what it did on win 2000/python 2.2.3
######> controller waiting... 0 loops
######> controller waiting... 1 loops
Subject : the counter is now 0
######> controller waiting... 2 loops
Subject : the counter is now 1
######> controller waiting... 3 loops
Subject : the counter is now 2
######> controller waiting... 4 loops
Subject : the counter is now 3
Subject : the counter is now 4 ######> controller waiting... 5 loops

Subject : the counter is now 5
######> controller waiting... 6 loops
Subject : the counter is now 6
######> controller waiting... 7 loops
Subject : the counter is now 7
Subject : the counter is now 8
######> controller waiting... 8 loops
Subject : the counter is now ######> controller waiting... 9 loops
9
Subject : the counter is now 10
######> controller waiting... 10 loops
Subject : the counter is now 11
Subject : the counter is now 12
######> controller waiting... 11 loops
Subject : the counter is now 13
######> controller waiting... 12 loops
Subject : the counter is now ######> controller waiting... 13 loops
14
Subject : the counter is now 15 ######> controller waiting... 14 loops

Subject : the counter is now 16
######> controller waiting... 15 loops
Subject : the counter is now 17
######> controller waiting... 16 loops
Subject : the counter is now 18
Subject : the counter is now 19
######> controller waiting... 17 loops
Subject : the counter is now 20
controller : threshold 20 reached
Subject : the counter is now 21
Subject : the counter is now 22
Subject : the counter is now 23
Subject : the counter is now 24
Subject : the counter is now 25
Subject : the counter is now 26
Subject : the counter is now 27
Subject : the counter is now 28
Subject : the counter is now 29
Subject : the counter is now 30
Subject : the counter is now 31
Subject : the counter is now 32
Subject : the counter is now 33
Subject : the counter is now 34
Subject : the counter is now 35
Subject : the counter is now 36
Subject : the counter is now 37
Subject : the counter is now 38
Subject : the counter is now 39
It seems to be what you were trying to do.

M.E.Farmer



Relevant Pages

  • Re: need some help with threading module...
    ... it runs under Linux but not under windows 0_o ??! ... ## and a controller that will try to yield data from the subject. ...
    (comp.lang.python)
  • Re: A new low for a Cirrus pilot
    ... As a veteran of many fly-ins, I can state that the request may have ... "Control, we have a rental car waiting for us, and if we don't get down ... consideration as soon as the field opens?" ... Controller: ...
    (rec.aviation.piloting)
  • Re: A new low for a Cirrus pilot
    ... headed into the Lake Parker holding pattern. ... "Control, we have a rental car waiting for us, and if we don't get down ... consideration as soon as the field opens?" ... Controller: ...
    (rec.aviation.piloting)
  • Re: If number is 0 return zero else return one
    ... Lakshmi Sreekanth writes: ... Only by using below operators, We should not use any loops ... or if or switch or any thing ... Waiting for clue. ...
    (comp.lang.c)
  • floppy.c - workaround for FDC initialization error
    ... the floppy controller: ... When compiled into the kernel, the kernel said: ... The controller is part of a Winbond W83627HF SuperIO, ... Does anyone have an idea of what the winbond controller is waiting ...
    (Linux-Kernel)