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