Subject: Re: Python with threads
To: Dan Winship <danw@ximian.com>
From: Nick Hudson <skrll@netbsd.org>
List: tech-pkg
Date: 04/18/2001 22:41:38
Dan Winship wrote:
> 
> > It builds that way, but it won't run very well with Pth because it's
> > non-preemptive. The tests will fail, for example.
> 
> Pth works *much* better as a pthreads replacement (like, at all :-) if
> you configure it with --enable-syscall-hard. It warns you that that code
> isn't tested, but I've been running with it successfully for months now.

With --enable-syscall-hard pth fails to wrap two syscalls. I have
patches to remedy this... somewhere.
 
> Has anyone ever seen pth as currently configured actually work for
> threading in an app that wasn't specifically written to pth? And if not,
> is it ok to change the flags in the package Makefile?

I want to look into the advantages of -soft vs -hard first. I was going
to put together the whole USE_PTHREADS thing.

Nick
-- 
aka skrll@netbsd.org, skrll@excite.co.uk