Date: Thu, 18 Sep 2008 14:33:52 +0100 From: Tom Evans <tevans.uk@googlemail.com> To: David Naylor <naylor.b.david@gmail.com> Cc: freebsd-current@freebsd.org Subject: Re: FreeBSD deadlock (with fork?) Message-ID: <1221744832.68732.4.camel@localhost> In-Reply-To: <200809180631.47071.naylor.b.david@gmail.com> References: <200809180631.47071.naylor.b.david@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--=-HzK5RTmMxvFERkURJjKR Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Thu, 2008-09-18 at 06:31 +0200, David Naylor wrote: > Hi, >=20 > I have a program that spawns a lot of subprocesses (with pipes open) from= =20 > multiple threads. The problem is the program often deadlocks, but not=20 > consistently. Sometimes the program can run over 5 times to competition=20 > without incidence and yet othertimes it locks within a few seconds. =20 >=20 Do you create threads, which then fork(), or do you fork() and then create = threads?=20 I think the former will not work.. Cheers Tom --=-HzK5RTmMxvFERkURJjKR Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEABECAAYFAkjSWLwACgkQlcRvFfyds/fmIgCfUQh21NO2FqkmGylH2syswyC5 IcgAn0ubHjnroSlQ9UEjGwt7OZydFys0 =7XeH -----END PGP SIGNATURE----- --=-HzK5RTmMxvFERkURJjKR--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1221744832.68732.4.camel>