Hi!
On Tue, Dec 18, 2007 at 01:20:23PM +0100, comfooc wrote:
>Hello,
>what is librthread status? I've noticed that there is no man page about it
>but there are some files in the tree... Is it usable?
>Cheers...
My last experience is, *not* usable. Even can crash the system (which
used to be better, i.e. no system crash, only varying result for the
*application*). Of course, it's officially completely unsupported, you
have to rebuild the kernel with option RTHREADS, such as for example
with this configuration file (without the indentation)
include "arch/i386/conf/GENERIC.MP"
option RTHREADS
building src/lib/librthreads, linking librthreads.so.(number) as
libpthreads.so.(number) (major.current minor of libpthreads plus one),
re-run ldconfig, and start a pthread application.
At least the MP case crashes nearly immediately for me after starting
a threaded application, then. I.e. back to running the supported stuff.
No time to debug this (at least the kernel part so things don't crash
the whole OS at least, but at most the application).
Kind regards,
Hannah.