java threads done, need help with cthreads