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.
分享到:
相关推荐
操作系统课程设计报告:实验三 Pintos线程管理【Pintos Project 1: Threads】
操作系统课程设计:实验三 Pintos线程管理【Pintos Project 1: Threads】
It describes in particular the mechanisms of synchronization (cooperative and competitive) and sharing of data (internal class, static variables) between threads in Java. He then discusses the use of...
###################################################################### 下面的程序是一个基于IO::Poll和threads多线程的Echo服务程序,### 在这个程序中实现了对于Dos方式攻击的防御以及对连接超时的处理#######...
操作系统—线程,对轻量级线程的实现进行讲解,涉及到线程调度、线程同步、信号模型等
操作系统概念英文课件:Chapter 04-threads[13].pptx
Oracle Solaris 8 man pages section 3: Threads and Realtime Library Functions-328
Oracle Solaris 8 man pages section 3: Threads and Realtime Library Functions-326
Oracle Solaris 9 - man pages section 3: Threads and Realtime Library Functions-326
Oracle Solaris 9 -man pages section 3: Threads and Realtime Library Functions-326
Programming with POSIX Threads(多线程编程PDF版本)经典嵌入式编程书,网站有人上传了,不过要用专用的阅读器,我转化成PDF,再发下
Oracle Solaris 9 - man pages section 3: Threads and Realtime Library Functions-326
线程_java 操作系统中线程管理的Java实现
/usr/bin/ld:cannot find-lThreads的解决办法 这是因为你cmakelists.txt中引入thread库没有写对,我来告诉你正确的写法
操作系统英文教学课件:Chapter4Threads.pptx
操作系统概念课件:Chapter 4 Threads.pdf