My mulithreaded C version