Re: [Zope] Zope threads and the GIL

2008-05-05 Thread Manuel Vazquez Acosta
Andreas Jung wrote: Then it should play nicely with Python. But keep in mind that thread switches can also be blocked by some thread without having the GIL locked. We've seen such situations were a thread had to perform complex regular expression matching operations. Obviously code in Python C

Re: [Zope] Zope threads and the GIL

2008-05-05 Thread Andreas Jung
--On 5. Mai 2008 10:11:32 -0400 Manuel Vazquez Acosta [EMAIL PROTECTED] wrote: Andreas Jung wrote: Then it should play nicely with Python. But keep in mind that thread switches can also be blocked by some thread without having the GIL locked. We've seen such situations were a thread had to

Re: [Zope] Zope threads and the GIL

2008-05-05 Thread Manuel Vazquez Acosta
Andreas Jung wrote: --On 5. Mai 2008 10:11:32 -0400 Manuel Vazquez Acosta [EMAIL PROTECTED] wrote: Andreas Jung wrote: Then it should play nicely with Python. But keep in mind that thread switches can also be blocked by some thread without having the GIL locked. We've seen such

Re: [Zope] Zope threads and the GIL

2008-05-05 Thread Dieter Maurer
Manuel Vazquez Acosta wrote at 2008-5-4 11:12 -0400: ... That would mean that the only place where real multitasking occurs is when fetching objects from ZEO and other I/O bounded tasks, isn't? I depends what you mean with real multitasking. If you mean by this that several CPUs are

Re: [Zope] Zope threads and the GIL

2008-05-05 Thread Manuel Vazquez Acosta
Dieter Maurer wrote: Manuel Vazquez Acosta wrote at 2008-5-4 11:12 -0400: ... That would mean that the only place where real multitasking occurs is when fetching objects from ZEO and other I/O bounded tasks, isn't? I depends what you mean with real multitasking. If you mean by this that

[Zope] Zope threads and the GIL

2008-05-04 Thread Manuel Vazquez Acosta
Hi all, How does the GIL affect Zope threads? Best regards, Manuel. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope

Re: [Zope] Zope threads and the GIL

2008-05-04 Thread Andreas Jung
--On 4. Mai 2008 09:44:17 -0400 Manuel Vazquez Acosta [EMAIL PROTECTED] wrote: Hi all, How does the GIL affect Zope threads? Zope threads are Python threads and therefore a thread switch is not possible is some thread is holding the GIL. -aj pgpE59zdNIMkB.pgp Description: PGP

Re: [Zope] Zope threads and the GIL

2008-05-04 Thread Manuel Vazquez Acosta
Andreas Jung wrote: --On 4. Mai 2008 09:44:17 -0400 Manuel Vazquez Acosta [EMAIL PROTECTED] wrote: Hi all, How does the GIL affect Zope threads? Zope threads are Python threads and therefore a thread switch is not possible is some thread is holding the GIL. -aj That would mean

Re: [Zope] Zope threads and the GIL

2008-05-04 Thread sam
) America/Guatemala Subject: Re: [Zope] Zope threads and the GIL Andreas Jung wrote: --On 4. Mai 2008 09:44:17 -0400 Manuel Vazquez Acosta [EMAIL PROTECTED] wrote: Hi all, How does the GIL affect Zope threads? Zope threads are Python threads and therefore a thread switch is not possible

Re: [Zope] Zope threads and the GIL

2008-05-04 Thread Andreas Jung
--On 4. Mai 2008 19:52:38 -0500 sam [EMAIL PROTECTED] wrote: another scenario is if you are using GIL aware Database adapters like mxODBC to access an RDBMS What means GIL-aware in this context? -aj pgpUCTUVaiWM3.pgp Description: PGP signature

Re: [Zope] Zope threads and the GIL

2008-05-04 Thread sam
, 2008 7:36:08 PM (GMT-0600) America/Guatemala Subject: Re: [Zope] Zope threads and the GIL --On 4. Mai 2008 19:52:38 -0500 sam [EMAIL PROTECTED] wrote: another scenario is if you are using GIL aware Database adapters like mxODBC to access an RDBMS What means GIL-aware in this context? -aj

Re: [Zope] Zope threads and the GIL

2008-05-04 Thread Andreas Jung
--On 4. Mai 2008 21:05:55 -0500 sam [EMAIL PROTECTED] wrote: Basically mxODBC is a third party extension and is GIL aware as it yields the GIL before accessing the DB Then it should play nicely with Python. But keep in mind that thread switches can also be blocked by some thread without