登录
首页 » Linux-Unix program » multithreaded process as a multi

multithreaded process as a multi

于 2023-06-23 发布 文件大小:2.50 kB
0 203
下载积分: 2 下载次数: 1

代码说明:

多线程程序作为一种多任务、并发的工作方式,有以下的优点:   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

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 用qt做的城市电子地图,可自动放大缩小,希望对初学QT编程的同门有帮助...
    用qt做的城市电子地图,可自动放大缩小,希望对初学QT编程的同门有帮助-Qt to do with electronic maps of cities, can be automatically enlarged or reduced, in the hope of learning programming QT help with the door
    2023-01-20 08:10:04下载
    积分:1
  • Take photos and videos with your webcam, with fun graphical effects Cheese cu...
    cheese 是一款用你的摄像头拍照片和视频的软件,并带一些有趣的特殊效果,让你同别人分享快乐的软件。cheese最初是作为Google’s 2007 Summer of Code一部分,主要由 daniel g. siegel和 Rapha?l Slinckx主持的,经过几个月的发展,cheese已经有大部分经典大头贴的功能。在后台,cheese是利用GStreamer来实现照片和视频的各种效果的。   cheese主页http://www.gnome.org/projects/cheese/- Take photos and videos with your webcam, with fun graphical effects Cheese currently requires: - glib-2.0 >= 2.16.0 - gobject-2.0 >= 2.12.0 - gio-2.0 >= 2.16.0 - gtk+-2.0 >= 2.17.4 - gdk-2.0 >= 2.14.0 - gnome-desktop-2.0 >= 2.26.0 - gconf-2.0 >= 2.16.0 - gstreamer-0.10 >= 0.10.20 - gstreamer-plugins-base-0.10 >= 0.10.20 - gstreamer-plugins-good-0.10 >= 0.10.8 - gnome-vfs-2.0 - dbus-1 - dbus-glib-1 - hal - cairo - pango - librsvg >= 2.18.0 - libebook-1.2 (evolution-data-server) - postr for Flickr export (optional) - f-spot for F-Spot export (optional) - nautilus-sendto for better export mechanism (optional) - a webcam - a bra
    2022-07-21 19:03:00下载
    积分:1
  • 这是一个linux下查看proccess的好源码,通过/proc目录来获得进程信息...
    这是一个linux下查看proccess的好源码,通过/proc目录来获得进程信息-This is a linux to view proccess a good source, through the/proc directory to get the process information
    2023-01-08 19:50:03下载
    积分:1
  • This library provides functionality to control any camera that conforms to the...
    This library provides functionality to control any camera that conforms to the 1394-Based Digital Camera Specification (which can be found at http://www.1394ta.org/Download/Technology/Specifications/Camera120.pdf). It utilizes the lowlevel functionality provided by libraw1394 to communicate with the camera.-This library provides functionality to co ntrol any camera that conforms to the 1394-Base d Digital Camera Specification (which can be az und at http :// www.1394ta.org/Download/Technology/Spe cifications/Camera120.pdf). It utilizes the lowlevel functionality provided by libraw139 4 to communicate with the camera.
    2022-02-05 18:57:16下载
    积分:1
  • who命令的具体实现,方法见原代码注释 /*who1.c
    who命令的具体实现,方法见原代码注释 /*who1.c - for a first version the who programe * open,read UTMP file,and show resulets -/*who1.c- for a first version the who programe * open,read UTMP file,and show resulets */
    2022-03-23 17:18:26下载
    积分:1
  • v4l usb 图像获取 v4l usb 图像获取
    v4l usb 图像获取 v4l usb 图像获取-v4l usb image acquisition v4l usb image acquisition
    2022-07-17 06:30:11下载
    积分:1
  • 《基于S3C44B0X嵌入式UCLINUX系统原理及应用.ppt
    《基于S3C44B0X嵌入式UCLINUX系统原理及应用.ppt- Based on S3C44B0X uCLinux embedded systems and application of the principle. Ppt
    2023-03-07 01:00:04下载
    积分:1
  • TCL demo by N. Sidiropoulos and R. Bro clear all F=5 % users I=4...
    TCL demo by N. Sidiropoulos and R. Bro clear all F=5 % users I=4 % antennas-TCLdemo by N. Sidiropoulos and R. Broclear all F = 5 usersI = 4 antennas
    2023-02-23 10:40:03下载
    积分:1
  • linux下支持lm70llp的spi驱动,有利于基于此开发上层应用程序
    linux下支持lm70llp的spi驱动,有利于基于此开发上层应用程序-linux to support lm70llp the spi-driven, based on this development is conducive to the upper application
    2022-03-20 12:53:49下载
    积分:1
  • GSM的编解码c源码(使用intel的ipp包)堪称效率最高。
    GSM的编解码c源码(使用intel的ipp包)堪称效率最高。-GSM arranges decodes the c source code (to use intel the ipp package) to may be called the efficiency to be highest.
    2022-05-30 12:01:35下载
    积分:1
  • 696518资源总数
  • 106215会员总数
  • 5今日下载