threading problems
Dan Nelson
dnelson at allantgroup.com
Sun Aug 31 19:39:20 PDT 2003
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 at allantgroup.com
More information about the freebsd-current
mailing list