process VS thread API
2010-08-19 15:11
441 查看
process和thread之间有很多共同的地方,也就是说有不少功能类似的api函数。
这里做个比较。
进程和线程多信号的处理
这里做个比较。
Process primitive | Thread primitive | Description |
---|---|---|
fork | pthread_create | create a new flow of control |
exit | pthread_exit | exit from an existing flow of control |
waitpid | pthread_join | get exit status from flow of control |
atexit | pthread_cancel_push | register function to be called at exit from flow of control |
getpid | pthread_self | get ID for flow of control |
abort | pthread_cancel | request abnormal termination of flow of control |
Process primitive | Thread primitive | Description |
---|---|---|
sigaction | sigaction(not recommend) | install signal handler |
sigprocmask | pthread_sigmask | set signal mask |
sigpending | return signals blocked and pending for process | |
sigsuspend | sigwait | reset the signal mask and put the process to sleep |
kill | pthread_kill | send signal |
相关文章推荐
- Linux Process VS Thread VS LWP
- 复习进程和线程 process vs thread
- process vs thread
- Process VS Thread
- Operating System-Thread(2) Multi-Process-Parallel vs Multi-Thread-Parallel
- Java --- Thread VS Process
- Thread VS Process From Stackoverflow
- Linux process vs thread
- Linux Process/Thread Creation、Linux Process Principle、sys_fork、sys_execve、glibc fork/execve api sourcecode
- Python multi-process VS multi-thread (多核CPU利用率)
- API Guides/App Components/Process and Thread翻译
- Process vs Thread
- Python multi-process VS multi-thread (多核CPU利用率)
- Process vs Thread
- WINDOWS-API:关于线程 GetCurrentThread、GetCurrentThreadId、GetCurrentProcess、GetCurrentProcessId
- process VS thread
- Thread VS Process
- 一个进程(Process)最多可以生成多少个线程(Thread),★firecat推荐★
- SDL Thread 相关API
- (jQuery) VS (MooTools) API与性能的比较