文件名称:pthread_examples.tar
-
所属分类:
- 标签属性:
- 上传时间:2008-10-13
-
文件大小:2.5kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
多线程程序作为一种多任务、并发的工作方式,有以下的优点:
1) 提高应用程序响应。这对图形界面的程序尤其有意义,当一个操作耗时很长时,整个系统都会等待这个操作,此时程序不会响应键盘、鼠标、菜单的操作,而使用多线程技术,将耗时长的操作(time consuming)置于一个新的线程,可以避免这种尴尬的情况。
2) 使多CPU系统更加有效。操作系统会保证当线程数不大于CPU数目时,不同的线程运行于不同的CPU上。
3) 改善程序结构。一个既长又复杂的进程可以考虑分为多个线程,成为几个独立或半独立的运行部分,这样的程序会利于理解和修改。
-multithreaded process as a multi-task, complicated by the way, has the following advantages : 1) improve application response. This graphical interface is especially meaningful, when a very long time-consuming operation, the entire system will wait for the operation, this procedure will not respond to keyboard, mouse, the menu of operations, and the use of multithreading technology, long will be time-consuming operation (time consuming) under a new thread, avoided this embarrassing situation. 2) multi-CPU system more effective. When the operating system would ensure that not more than a few threads CPU number of different threads running on different CPUs. 3) to improve program structure. A long and complex process can be divided into consideration a number of threads, into several indepen
1) 提高应用程序响应。这对图形界面的程序尤其有意义,当一个操作耗时很长时,整个系统都会等待这个操作,此时程序不会响应键盘、鼠标、菜单的操作,而使用多线程技术,将耗时长的操作(time consuming)置于一个新的线程,可以避免这种尴尬的情况。
2) 使多CPU系统更加有效。操作系统会保证当线程数不大于CPU数目时,不同的线程运行于不同的CPU上。
3) 改善程序结构。一个既长又复杂的进程可以考虑分为多个线程,成为几个独立或半独立的运行部分,这样的程序会利于理解和修改。
-multithreaded process as a multi-task, complicated by the way, has the following advantages : 1) improve application response. This graphical interface is especially meaningful, when a very long time-consuming operation, the entire system will wait for the operation, this procedure will not respond to keyboard, mouse, the menu of operations, and the use of multithreading technology, long will be time-consuming operation (time consuming) under a new thread, avoided this embarrassing situation. 2) multi-CPU system more effective. When the operating system would ensure that not more than a few threads CPU number of different threads running on different CPUs. 3) to improve program structure. A long and complex process can be divided into consideration a number of threads, into several indepen
(系统自动生成,下载前可以参看下载内容)
下载文件列表
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.