双语:Threads 操作系统线程

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.

 

 

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值