FreeBSD deadlock (with fork?)

Tom Evans tevans.uk at googlemail.com
Thu Sep 18 14:02:23 UTC 2008


On Thu, 2008-09-18 at 06:31 +0200, David Naylor wrote:
> Hi,
> 
> I have a program that spawns a lot of subprocesses (with pipes open) from 
> multiple threads.  The problem is the program often deadlocks, but not 
> consistently.  Sometimes the program can run over 5 times to competition 
> without incidence and yet othertimes it locks within a few seconds.  
> 

Do you create threads, which then fork(), or do you fork() and then create threads? 

I think the former will not work..

Cheers

Tom

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20080918/2c5c44d0/attachment.pgp


More information about the freebsd-current mailing list