Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Apr 2012 23:49:07 -0700
From:      Julian Elischer <julian@freebsd.org>
To:        "'Chris Hall'" <chris.hall.list@highwayman.com>
Cc:        freebsd-threads@freebsd.org
Subject:   Re: Trying to set PTHREAD_SCOPE_SYSTEM
Message-ID:  <4F9CE463.5070501@freebsd.org>
In-Reply-To: <056201cd253c$b43a0860$1cae1920$@highwayman.com>
References:  <056201cd253c$b43a0860$1cae1920$@highwayman.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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"
>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F9CE463.5070501>