1. split process.h to thread.h and process.h
2. redefine process_t to pid_t
3. typedef tid_t
fixed socket_t type redefined error (define OS_SOCKET_TYPE)
use gcc raw atomic api
tidy