-
multithreaded process as a multi
多线程程序作为一种多任务、并发的工作方式,有以下的优点:
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
- 2023-06-23 05:00:03下载
- 积分:1
-
linux 嵌入式开发程序员用书:用QT开发各种嵌入式应用程序的基础用书。...
linux 嵌入式开发程序员用书:用QT开发各种嵌入式应用程序的基础用书。-linux embedded development programmers books: QT development with a wide variety of embedded applications based on books.
- 2022-03-16 01:03:55下载
- 积分:1
-
周立功
ZLG-GUI源代码完整版12-font5_7.c
-ZLG-GUI source code full version of 12-font5_7.c
- 2023-02-22 08:50:04下载
- 积分:1
-
linux下she
linux下she-linux she
- 2022-02-01 03:10:14下载
- 积分:1
-
ISDN Q.921和Q.931 PRI的源代码
ISDN Q.921 &Q.931 PRI source code
- 2022-01-26 00:10:28下载
- 积分:1
-
BeginningLinuxProgramming example3
BeginningLinuxProgramming example3
- 2022-03-04 20:44:07下载
- 积分:1
-
its the source code for tcp sockets to be used in any unicast environment under...
its the source code for tcp sockets to be used in any unicast environment under Linux environment.
- 2022-02-25 07:22:37下载
- 积分:1
-
form = new_form(fields)
scale_form(form, &rows, &cols)
win = newwin(ro...
form = new_form(fields)
scale_form(form, &rows, &cols)
win = newwin(rows+3, cols+4, 3, 20)
subwin = derwin(win, rows, cols, 1, 2)
set_form_sub(form, subwin)
box(win, 0, 0)
keypad(win, TRUE)
post_form(form)
refresh()
wrefresh(win)
wrefresh(subwin)
//设置覆盖模式
form_driver(form, REQ_OVL_MODE)
- 2023-04-25 08:50:03下载
- 积分:1
-
Linux变成一直是个头痛的问题,因为没有好的IDE环境,这本书介绍了Linux的经典编辑器VIM的使用以及如何改装它,很不错的书籍。...
Linux变成一直是个头痛的问题,因为没有好的IDE环境,这本书介绍了Linux的经典编辑器VIM的使用以及如何改装它,很不错的书籍。-Linux has always been a headache into a problem because there is no good IDE environment, this book introduces the classic Linux use VIM editor and how to modify it, very good books.
- 2022-06-27 01:40:37下载
- 积分:1
-
界面程序
界面程序- Contact surface procedure
- 2022-05-07 04:55:14下载
- 积分:1