Re: FreeBSD deadlock (with fork?)

From: Tom Evans <tevans.uk_at_googlemail.com>
Date: Thu, 18 Sep 2008 14:33:52 +0100
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


Received on Thu Sep 18 2008 - 12:02:23 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:35 UTC