Linux also has effectively an infinite concurrency level since there's no difference between kernel and user level threads there. At least not in the traditional linuxthreads library; I know there's been talk about changing that in NPTL (or was it NGPT).
/ Martin Stjernholm, Roxen IS
Previous text:
2003-10-08 17:57: Subject: Re: Thread question
In the last episode (Oct 08), David Gourdelier said:
After looking in Pike thread sources it seems that there is a void thread_set_concurrency(int concurrency) function but it is not used because of that:
/* SIGH! No setconcurrency in posix threads. This is more or less
- needed to make usable multi-threaded programs on solaris machines
- with only one CPU. Otherwise, only systemcalls are actually
- threaded.
*/ #define th_setconcurrency(X)
Do you know what this function was for ? Why it is not available ?
Posix threads does have pthread_setconcurrency(), so that comment is a bit outdated. In addition, Solaris 9 always attaches each thread to a LWP, so in effect the concurrency = Inf.
http://docs.sun.com/db/doc/806-6867/6jfpgdcnc?a=view#attrib-28
-- Dan Nelson dnelson@allantgroup.com
/ Brevbäraren