Issue 902444: FreeBSD new pthread problem with system scope (original) (raw)

FreeBSD libpthread based on their kernel thread infrastructure called "KSE" will be introduced in FreeBSD 5.3 by default. Currently, our test_threaded_import is failing due to shortage of KSE system scope scheduling resource. According to KSE gurus, they are doing enough round-robin scheduling for process scope threads and it is much cheaper than system scope. (see http://lists.freebsd.org/pipermail/freebsd-ports/2004-February/008852.html) The attached patch disables setting threads into system scope scheduling.