From owner-freebsd-threads@FreeBSD.ORG Sun Apr 29 06:49:14 2012 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id ADCD91065672 for ; Sun, 29 Apr 2012 06:49:14 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) by mx1.freebsd.org (Postfix) with ESMTP id 7D8188FC08 for ; Sun, 29 Apr 2012 06:49:14 +0000 (UTC) Received: from julian-mac.elischer.org (c-67-180-24-15.hsd1.ca.comcast.net [67.180.24.15]) (authenticated bits=0) by vps1.elischer.org (8.14.5/8.14.5) with ESMTP id q3T6nBhO031830 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Sat, 28 Apr 2012 23:49:13 -0700 (PDT) (envelope-from julian@freebsd.org) Message-ID: <4F9CE463.5070501@freebsd.org> Date: Sat, 28 Apr 2012 23:49:07 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20 MIME-Version: 1.0 To: "'Chris Hall'" References: <056201cd253c$b43a0860$1cae1920$@highwayman.com> In-Reply-To: <056201cd253c$b43a0860$1cae1920$@highwayman.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-threads@freebsd.org Subject: Re: Trying to set PTHREAD_SCOPE_SYSTEM X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Apr 2012 06:49:14 -0000 On 4/28/12 5:44 AM, 'Chris Hall' wrote: > For my application (a BGP daemon) I think I should be setting all its > pthreads to PTHREAD_SCOPE_SYSTEM. (This may be where I am going > wrong, of course, but bear with me.) > [...] > Third difficulty: if I set PTHREAD_SCOPE_SYSTEM and the default is > PTHREAD_SCOPE_PROCESS, do I also need to set policy/param ? If so, > where do I find suitable default policy/param ? > (I could copy the policy/param from the main thread... but will that > be suitable for PTHREAD_SCOPE_SYSTEM ?) AS far as I know the default is PTHREAD_SCOPE_SYSTEM now. we no longer support PTHREAD_SCOPE_PROCESS as far as I know. (I may be confused of course.. it wouldn't be the first time). We used to have the ability to switch but the complexity was not worth the added benefit. > Fourth difficulty: if I dick about with scope/policy/param, will I > need special privileges (root, say) ? > > Fifth difficulty: it is clearly easiest to leave this whole thing > alone and ignore pthread_attr_t altogether. Is there a way to set > PTHREAD_SCOPE_SYSTEM as the default for a given application from the > outside ? > > > _______________________________________________ > freebsd-threads@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-threads > To unsubscribe, send any mail to "freebsd-threads-unsubscribe@freebsd.org" >