Python Threads on Linux

David Lees DavidLnonospammy at raqia.com
Tue Jul 31 16:56:03 EDT 2001


Question - Does this affect the global lock at all?  Is it some way to
get around it?  I wrote some simple threaded code awhile back that ran
on a dual processor board.  The global lock kept 2 threads from running
in parallel on separate processors.

david lees


Gerhard Häring wrote:
> 
> On Tue, 31 Jul 2001 17:28:32 GMT, Courageous <jkraska1 at san.rr.com> wrote:
> >>Didn't IBM just release a new (optional) threads package for Linux that
> >>implements true lightweight threads?
> 
> Yes. See http://oss.software.ibm.com/developerworks/opensource/pthreads/
> 
> >This would require a kernel-patch, yes?
> 
> Yes. IBM's Next Generation Posix Threading is btw. based on GNU Pth (a
> threading library that is non-preemptive and runs completely in userspace).
> Python can be built against GNU Pth out of the box.
> 
> Gerhard
> --
> mail:   gerhard <at> bigfoot <dot> de       registered Linux user #64239
> web:    http://highqualdev.com              public key at homepage
> public key fingerprint: DEC1 1D02 5743 1159 CD20  A4B6 7B22 6575 86AB 43C0
> reduce(lambda x,y: x+y, [chr(ord(x)^42) for x in list('zS^BED\nX_FOY\x0b')])



More information about the Python-list mailing list