Portable operating system interface of unix threads programming
IPC inter process communication進(jìn)程間通信
半雙工管道
FIFO
全雙工管道
命名全雙工管道
消息隊列
信號量
共享存儲
套接字
STREAMS
-------
before understand a thread , one need to first understand is unix process.
- 進(jìn)程id,組id,用戶id:Process ID, process group ID, user ID, and group ID
- 環(huán)境Environment
- 工作目錄Working directory.
- 程序指令Program instructions
- Registers寄存器
- Stack棧
- Heap堆
- File descriptors文件描述
- Signal actions信號事件
- Shared libraries分享libraries
- Inter-process communication tools (such as message queues, pipes, semaphores, or shared memory).進(jìn)程間通信工具
![]() |
![]() |
UNIX PROCESS | THREADS WITHIN A UNIX PROCESS |