Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Aug 2003 21:39:06 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        rhett@alasir.com
Cc:        current@freebsd.org
Subject:   Re: threading problems
Message-ID:  <20030901023905.GK7020@dan.emsphone.com>
In-Reply-To: <20030901021331.82307.qmail@web21502.mail.yahoo.com>
References:  <20030901021331.82307.qmail@web21502.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Sep 01), RMH said:
> Hello gentlemen,
> 
> I seem to have threading problems with 5.1-RELEASE. Every time I run
> a multithreaded application (linked against libc_r) on a SMP system,
> I get only 1 CPU loaded at any moment given. I tried different

Correct.  libc_r is a userland threading library, which means that all
threads run as a single plain process.  Linuxthreads forks a new
process for each thread.  Try linking with -lkse or -lthr; both of
these threading libraries allow multiple threads to run simultaneously
on multiple CPUs.

-- 
	Dan Nelson
	dnelson@allantgroup.com



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