edited thread.c, process.c, syscall.c