basic pthreads implemention (with lots of parts missing) seem to work.