Process and Thread

875阅读 0评论2010-03-06 victorgreat
分类:LINUX

Here are the same elements of process and thread listed in the table.


 Process  Thread
 Descreiption
 fork  pthread_create
 create
 exit  pthread_exit  exit
 waitpid 
 pthread_join  get quit status
 atexit  pthread_cancel_push  register to exit
 getpid  pthread_self  get id
 abort  pthread_cancel  exit improperly

Process communication: pipe, message, semaphore, shared memory, socket.

Thread communication: mutex, read-write lock, condition variable.
上一篇:Create Two Threads and End with ESC
下一篇:new, delete, malloc, free in C/C ++