On Sep 26, 7:01 pm, Derek Anderson <[EMAIL PROTECTED]> wrote: > well, that was sarcasm with the "lazy" comment...come on, i love python. > why else would i be here? :) > > but it is faked. two python threads can't run concurrently on a two > processor machine. unless, as you pointed out, you're calling a few > hand-picked C operations (mostly i/o). they're like green threads from > java 1.0. "faked" is about as good of an adjective as you get.
When running Python embedded within Apache that matters a great deal less than some seem to make it out to be. This is because all the threads originate from Apache and all the Apache request handling and static file handling, being done in C code before Python code is even invoked, can quite happily run in parallel to each other and to threads executing within Python code. So, in the context of Apache there is still ample opportunity to make use of multiple processors and/or cores and the GIL isn't as big a problem as where someone runs a single Python only web process. Apache being a multi process web server as well makes it even less relevant. So although bashing up on the Python GIL seems to be the flavour of the month, use the right technology and configurations and for web applications at least it isn't a big deal. :-) Graham > still love python tho. > > derek > > Fredrik Lundh wrote: > > Derek Anderson wrote: > > >> but then again, python itself isn't multi-threaded. (all threading is > >> faked - google "global interpreter lock". lazy s.o.b. python devs) > > > given that a stock CPython interpreter releases the lock in a few > > hundred places, primarily around potentially long-running or blocking C > > operations, claiming that "all threading is faked" is a bit misleading. > > maybe you should do a bit more research before you start calling > > people names? > > > </F> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---