Signal SIGINT ignored during socket.accept

James Harris james.harris.1 at gmail.com
Fri Sep 11 19:15:54 EDT 2015


"James Harris" <james.harris.1 at gmail.com> wrote in message 
news:msv21t$n1m$1 at dont-email.me...
>
> "Grant Edwards" <invalid at invalid.invalid> wrote in message 
> news:msum6c$hv$1 at reader1.panix.com...

...

>> Waking up twice per second and immediately
>> calling select() again on any hardware/OS built in the past 50 years
>> is going completely negligible (as long as you can ignore the smell).
>
> CPU usage is not the only issue but it is a consideration. I tested it 
> before posting the code and couldn't see any significant increase in 
> CPU use. To give it a better test I have just left running for a 
> couple of hours or so. I am pleased to say it currently reports a 
> cumulative total of 0:00:00, i.e. it has not clocked up even a second 
> of CPU time yet!

I am beginning to wonder if time is being accounted properly. It has now 
been running 8 hours and still shows CPU time as zero.

James




More information about the Python-list mailing list