rm gthread + add thread.c