Subject: Re: fork(2) vs. pthread_create() (fwd)
To: Emmanuel Dreyfus <firstname.lastname@example.org>
From: Bill Studenmund <email@example.com>
Date: 06/10/2004 17:26:22
Content-Type: text/plain; charset=us-ascii
On Thu, Jun 10, 2004 at 07:05:45AM +0200, Emmanuel Dreyfus wrote:
> Jason Thorpe <firstname.lastname@example.org> wrote:
> > Of course it is still threaded... you simply only have one (the main)
> > thread at the time.
> Well, at least it's not _multi_threaded anymore.
In terms of POSIX restrictions, you called pthread_create(). You're=20
threaded. Just because you only have one thread right now doesn't change=20
> > In any case, your program violates POSIX, so you should fix your=20
> > program.
> I did that already. But as this works on other systems, and even on
> NetBSD with GNU Pth, I'm sure someone else will get bitten by this
> problem later.
But isn't this "problem" is that the program expects to be able to do
something POSIX doesn't say it can depend on doing? Thus is it really=20
NetBSD's pthread library is pickier than other pthread libraries, and has=
caught other programming errors before. Even in programs that "worked" in=
other operating systems.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (NetBSD)
-----END PGP SIGNATURE-----