On Tue, 14 Feb 2006, [EMAIL PROTECTED] wrote:

> Is the new Rthreads library functional enought 3.9 that it can be used for
> 'experimental' purposes? Has there been anything documented yet as to it's
> used?

The moment it was committed it has been allright for experimenting,
just do not expect all your experiments to succeed.

There is a bunch of work to be done, however. Both kernel and
userland. 

Tedu posted a diff to lib/libc/sys/Makefile.inc on tech@ that you'll
need. Also, yo need to enable the RTHREADS option in your kernel.
After building and installing, just move away the existing
libpthread.so.x.y and link librthread.so.1.0 to that name. 

Some caveats I know:

- run with LD_BIND_NOW=1, otherwise you'll see processes dying once in
  a while.
- programs that use thread suspend/resume sometimes end up in a state
  with all threads suspended. This can be observed when running java
  programs like tomcat, for example.
- There are problems with thread local storage. kde triggers these problems.
- Signal handling is nowhere near complete or correct. Example: mysql
  does not want to quit when asked with mysqladmin. It appears to
  run ok otherwise.
- Some archs will have problems dealing with threads modyfing page
  protection. AFAIK, i386 does not have this problem.
- Thread cancellation points are not implemented.

        -Otto

Reply via email to