登录
首页 » Process-Thread »  一般而言,应用程序中的一个次要线程总是为主线程执行特定的任务,这样,主线程和次要线程间必定有一个信息传递的渠道,也就是主线程和次要线程间要进行通信。这种线程间...

 一般而言,应用程序中的一个次要线程总是为主线程执行特定的任务,这样,主线程和次要线程间必定有一个信息传递的渠道,也就是主线程和次要线程间要进行通信。这种线程间...

于 2022-03-06 发布 文件大小:23.68 kB
0 136
下载积分: 2 下载次数: 1

代码说明:

 一般而言,应用程序中的一个次要线程总是为主线程执行特定的任务,这样,主线程和次要线程间必定有一个信息传递的渠道,也就是主线程和次要线程间要进行通信。这种线程间的通信不但是难以避免的,而且在多线程编程中也是复杂和频繁的,下面将进行说明。-Generally speaking, the application of a secondary thread is always the main thread to perform a specific task, so that main thread and secondary threads must have a channel for the transmission of information, which is the main thread and the secondary thread to communicate between. This inter-thread communication is not only inevitable, but also in multi-threaded programming is complex and frequent, the following description will be carried out.

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

发表评论

0 个回复

  • 软件简介:多线程局域网扫描组件,参考了几位虾米的代码,然后进行多线程封装.速度还可以,能在三妙内扫描完毕 0.0 至 0.255 IP段....
    软件简介:多线程局域网扫描组件,参考了几位虾米的代码,然后进行多线程封装.速度还可以,能在三妙内扫描完毕 0.0 至 0.255 IP段.-software description : multithreading LAN scanning components, several shrimp reference to the code, then multithreading package. Speed can also capable of scanning within three Miao finished 0.0-0.255 of IP.
    2022-05-17 23:26:31下载
    积分:1
  • Multithreading is a powerful tool, we can each time the need to implement the ma...
    多线程是一个功能强大的工具,我们可以在每次需要执行长时间运行的任务时使用该工具。我们可以用它运行辅助代码,而无需绑定用户界面。但同时要注意,多线程操作非常复杂,要正确操作并不容易,而且调试起来也比较困难。 尽管不一定能够实现,但我们还是应该尽量为每个辅助线程提供一组它可以操作的独立数据。要达到这个目的,最简单的方法就是为每个线程创建一个对象,对象中包含该线程可以操作的数据以及完成工作所需的代码。 通过实现结构化的架构,使之充当辅助线程和 UI 线程之间的媒介,我们可以大大简化编写多线程代码和 UI 以对其进行控制的过程。本文就介绍了这样一个架构,您可以根据需要使用或进行调整,以满足特定的应用需要。(附有详细的中文说明)-Multithreading is a powerful tool, we can each time the need to implement the mandate of running the use of this tool. We can use it for running auxiliary code, without the bundled user interface. It should be noted that multi-threaded operation is very complex to operate correctly is not easy, but it is also testing more difficult. Although not necessarily to achieve, but we should still try to provide every support threaded a group it can operate independent of data. To achieve this purpose, the simplest way is to create a thread for each object, object contains the thread can operate and the data necessary to complete the work of the code. Through the structure of the archit
    2023-06-08 19:10:04下载
    积分:1
  • two experimental operating system : the process of scheduling strategy to achiev...
    操作系统实验2:进程调度策略的模拟实现 1、 设计一个有 N个进程共行的进程调度程序。 2、 每个进程有一个进程控制块PCB来表示,进程控制块的格式为: 进程名 优先数 到达时间 需要运行时间 已占用CPU时间 进程状态 a) 进程优先数、需要运行时间、到达时间可以事先人为地指定,也可以随机产生,注意初始化上述数值时要尽量使进程并发执行,而不是按到达时间顺序调度。 b) 进程的运行时间以时间片为单位进行计算。 c) 进程状态分为就绪、运行、完成三种状态之,分别用W、R、F表示。 3、 进程调度规则如下: a) 就绪进程获得 CPU后都只能运行一个时间片。用已占用CPU时间加1来表示。 b) 如果运行一个时间片后,进程已占用 CPU时间达到所需要运行时间,则进程完成,撤销该进程。 c) 如果运行一个时间片后,进程已占用CPU时间还未达到所需要运行时间,即进程需要继续运行,将它插入就绪队列,队列重新排序,等待CPU。 d) 重复以上过程,直到所要进程都完成为止。 -two experimental operating system : the process of scheduling strategy to achieve a simulation. Design is a process of a total of N the process scheduler. 2, each process is a process control block to PCB said that the process control block format : process a few who arrived at the priority needs time to time running CPU time a state process) process priority number. need to run time, arriving in time prior to artificially designated, can also randomly generated, Initialization attention to the above values are to m
    2022-02-20 17:25:28下载
    积分:1
  • 利用DELPHI下标准的多线程类TThread来完成我们多现程的设计
    利用DELPHI下标准的多线程类TThread来完成我们多现程的设计-use under standard multithreaded category TThread to finish what we design is the way
    2022-01-23 10:53:19下载
    积分:1
  • 操作系统课程实验,模拟操作系统中进程控制与进程调度,有详细的文档和代码...
    操作系统课程实验,模拟操作系统中进程控制与进程调度,有详细的文档和代码-operating system, operating system simulation process control and process scheduling, detailed documentation and code
    2022-01-22 14:59:19下载
    积分:1
  • CPU的进程控制程序 VB做的,还不错
    CPU的进程控制程序 VB做的,还不错-CPU process control procedures for VB to do, but also good
    2022-11-11 22:05:03下载
    积分:1
  • 多线程资源控制方面的 非常的好用啊
    多线程资源控制方面的 非常的好用啊 -Multi-threaded resource control is very easy to use ah
    2022-01-26 04:40:35下载
    积分:1
  • 异步的网页请求类可以执行get和post方法
    异步的网页请求类可以执行get和post方法-asynchronous web request class can get and post implementation methods
    2022-03-28 19:29:31下载
    积分:1
  • 多线程编程系列。使用事件进行线程间的通讯。一个不错的实例代码。...
    多线程编程系列。使用事件进行线程间的通讯。一个不错的实例代码。-series of multi-threaded programming. The use of the incident to communications between the threads. A good example code.
    2022-05-22 21:44:43下载
    积分:1
  • 单线程的,socket
    单线程的,socket-based通信,简单sever-client通信-Single-threaded, socket-based communications, a simple sever-client communications
    2023-04-16 05:50:03下载
    积分:1
  • 696516资源总数
  • 106462会员总数
  • 0今日下载