On Apr 21, 9:20 am, [EMAIL PROTECTED] (Aahz) wrote: > In article <[EMAIL PROTECTED]>, > Carl Banks <[EMAIL PROTECTED]> wrote: > > > > >On Apr 20, 10:57 pm, [EMAIL PROTECTED] (Aahz) wrote: > >> In article <[EMAIL PROTECTED]>, > >> Carl Banks <[EMAIL PROTECTED]> wrote: > >>>On Apr 17, 3:37 am, Jonathan Gardner <[EMAIL PROTECTED]> > >>>wrote: > > >>>> Using 100% of the CPU is a bug, not a feature. > > >>>No it isn't. That idea is borne of the narrowmindedness of people who > >>>write server-like network apps. What's true for web servers isn't > >>>true for every application. > > >> Only when you have only one application running on a machine. > > >Needless pedantry. > > >"Using 100% of the CPU time a OS allow a process to have is not > >necessarily a bug." Happy? > > Not really; my comment is about the same level of pedantry as yours. > Jonathan's comment was clearly in the context of inappropriate CPU usage > (e.g. spin-polling).
That's far from evident. Jonathan's logic went from "I'm using 100% CPU" to "You must be spin-polling". At best, Jonathan was making some unsupported assumptions about the type of program sturlamolden had in mind, and criticized him based on it. But frankly, I've seen enough people who seem to have no conception that anyone could write a useful program without an I/O loop that it wouldn't surprise me it he meant it generally. > Obviously, there are cases where hammering on the > CPU for doing a complex calculation may be appropriate, but in those > cases, you will want to ensure that your application gets as much CPU as > possible by removing all unnecessary CPU usage by other apps. Nonsense. If I'm running a background task on my desktop, say formating a complex document for printing, I would like it to take up as much of CPU as possible, but still have secondary priority to user interface processes so that latency is low. Carl Banks -- http://mail.python.org/mailman/listinfo/python-list