Re: pthread - system() blocking
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=2ui473d9zdokgjRE5E+J/VUklY5l+uvXMTfr0KN6+4w=; b=l8ENvaNB9vSgcd8WWTn1WpKomEwkR1iitgVFwnISHSvhMfZiG9G/YPacAb/5XIUXoI QgJWMn4lXO6l0VdkyQMbt2rp/rl7R9yI1mwuoV58F2OmCmTu0C4Z96s1aBTndCAdYK2n MQWibU8PD8XYwGidnaRRmZIcXiynzLbVN2dXk= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=QK5rQW7PSOEB+vfntFMpWFKSn8FGQ+wpIV6RcJgTegEZt6WCbUjiC/UwwQJA27zNN2 z95MRSyRwev8tO5e6dZaJq4rkSFrAridiFxdk04Y+X2OMv/ArGIiJA3qR7BEXFOjzKoU TOkkTNIeA8gReHUEzZJHHGBLcgyJwM4KjS2ws= On Mon, Feb 28, 2011 at 5:13 PM, Mark E. Armstrong <Mark.Armstrong@soleratec.com> 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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Stephen J. Butler