basic thread question

Jeff Roberson jroberson at chesapeake.net
Fri May 23 23:06:42 PDT 2003


On Fri, 23 May 2003, Petri Helenius wrote:

> >
> > Either link to libkse or libthr (-lkse or -lthr).  Don't use
> > libc_r (-pthread or -lc_r).  Libkse will set the concurrency
> > to the number of CPUs in your system.  You can also use
> > scope system threads with libkse.
> >
> > libthr will create each thread in its own KSE, and is more
> > like Linuxthreads (1:1) model.  libkse is M:N.
> >
> As far as my experience shows linuxthreads has issues with mutexes on an SMP
> machine (at least when running on FreeBSD).

libthr does not have issues with mutexes.  I'm not sure what linux threads
issues are.  You should try libthr as well.  It has some advantages over
kse as well as some disadvantages.

>
> I actually tried -lkse on a machine with kernel about two weeks old,
> so far I have not been able to reach the machine since ...
>
> Will try again on more local box, because it does not seem to crash to console
> debugger but just plain out "die".
>
> Pete
>
> _______________________________________________
> freebsd-threads at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-threads
> To unsubscribe, send any mail to "freebsd-threads-unsubscribe at freebsd.org"
>



More information about the freebsd-threads mailing list