双语:Threads 操作系统线程
2013-11-23 10:55
99 查看
A thread is a basic unit of CPU utilization; it comprises a thread ID, a program counter, a register set, and a stack.
一个线程是一个使用CPU的基本单元; 它由进程ID,程序计数器,寄存器和栈组成。
It shares with other threads belonging to the same process its code section, data section, and other operating-system resources, such as open files and signals.
它和在同一进程内的其他线程共享代码段,数据段,和其他操作系统资源,比如打开的文件和信号等。
the difference between a traditional single-threaded process
and a multithreaded process.
An application typically is implemented as a separate process with several threads of control.
一个应用程序通常是作为一个单独的进程运行,同时由线程控制。
例如:
A word processor may have a thread for displaying graphics, another thread for responding to keystrokes from the user, and a third thread for performing spelling and grammar checking in the background.
一个文本处理器也许有一个线程复杂现实图形,另外一个线程对用户的键盘输入做出反应,还有第三个进程在后台负责检查语法。
Multithreaded server architecture
多线程服务器构架图:
The benefits of multithreaded programming can be broken down into four major categories:
多线程编程的好处:
Responsiveness
Resource sharing.
Economy.
Scalability.
一个线程是一个使用CPU的基本单元; 它由进程ID,程序计数器,寄存器和栈组成。
It shares with other threads belonging to the same process its code section, data section, and other operating-system resources, such as open files and signals.
它和在同一进程内的其他线程共享代码段,数据段,和其他操作系统资源,比如打开的文件和信号等。
the difference between a traditional single-threaded process
and a multithreaded process.
An application typically is implemented as a separate process with several threads of control.
一个应用程序通常是作为一个单独的进程运行,同时由线程控制。
例如:
A word processor may have a thread for displaying graphics, another thread for responding to keystrokes from the user, and a third thread for performing spelling and grammar checking in the background.
一个文本处理器也许有一个线程复杂现实图形,另外一个线程对用户的键盘输入做出反应,还有第三个进程在后台负责检查语法。
Multithreaded server architecture
多线程服务器构架图:
The benefits of multithreaded programming can be broken down into four major categories:
多线程编程的好处:
Responsiveness
Resource sharing.
Economy.
Scalability.
相关文章推荐
- 进程和线程更形象和简单的理解 操作系统
- [操作系统] 进程与线程
- 操作系统进程线程总结
- 以操作系统的角度述说线程与进程
- 计算机操作系统之线程(四)
- 线程的概念-操作系统读书笔记
- 操作系统中作业、进程、线程、管程各自的定义及联系
- 操作系统--------进程管理(线程)
- Threads(线程)(二)
- 操作系统-进程线程--3--线程安全概念
- 【操作系统学习笔记】线程篇
- 操作系统中作业、程序、进程、线程及管程的定义与联系
- Windows系列操作系统对线程间通信的支持——管道与邮路
- Windows操作系统kill Oracle线程的实施方案
- 【操作系统】线程
- 【java面试系列之操作系统】进程和线程、死锁、内存管理方式
- 操作系统--线程介绍
- 操作系统 *** 进程与线程
- 操作系统 进程 线程
- 操作系统(二):进程和线程管理_3_处理机调度