erlug
[Top] [All Lists]

Re: [Erlug] udp socket, packet loss

To: ERlug - Lista Pubblica <erlug@xxxxxxxxxxxxxx>
Subject: Re: [Erlug] udp socket, packet loss
From: "Guido Bolognesi [ Zen ]" <zen@xxxxxxxxx>
Date: Mon, 9 Jul 2007 08:20:26 +0200
On Sun, Jul 08, 2007 at 07:04:05PM +0200, Roberto Bettazzoni wrote:
>   
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/threading.py",
>  line 418, in start
>     _sleep(0.000001)    # 1 usec, to let the thread run (Solaris hack)
uh... Solaris?

> Le librerie pitoniche del Mac introducono uno sleep sull'avvio del thread!
Le 2.4 ce le hai montate tu, vero?

beepbeep:~ zen$ less 
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/threading.py
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/threading.py: 
No such file or directory

Che` il mac viene di default con 2.3... (che ha le stesse righe di commenti
e sleep e porcherie in threading.py).
Tra l'altro, ho pure uno sleep random dentro ProducerThread
        _sleep(random() * 0.00001)

uhm...
-- 
guido . zen@xxxxxxxxxxxxxxx . skype://zenmobile

<Prev in Thread] Current Thread [Next in Thread>