Re: pthread - system() blocking
Re: pthread - system() blocking
- Subject: Re: pthread - system() blocking
- From: "Stephen J. Butler" <email@hidden>
- Date: Mon, 28 Feb 2011 17:20:51 -0600
On Mon, Feb 28, 2011 at 5:13 PM, Mark E. Armstrong
<email@hidden> wrote:
> In a pthread application, I need to call system() to execute an external
> program. When system() is called in a non-main thread, any other calls to
> system() are blocked until the previous call has returned. How do we work
> around the blocking?
Are you sure you aren't just seeing the effects of output buffering?
That would be my first guess at what's happening... not that system()
is being serialized.
But if that IS actually the case, you can always fork/exec yourself.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden