-
我编了一个类似Windows 2000 上性能监视器的程序。在这个程序中,我创建了一个文档对象和几个视图。文档对象负责有规律地采集数据,然后通知相关的视图以不同...
我编了一个类似Windows 2000 上性能监视器的程序。在这个程序中,我创建了一个文档对象和几个视图。文档对象负责有规律地采集数据,然后通知相关的视图以不同的格式显示这些数据。文档对象为了有规律地采集数据,它需要一个定时(time)事件。但是,文档不是一个基于窗口的对象,所以它没有这样的定时事件。我权衡了三种解决方案: 1、在其中的一个视图中创建定时器。当事件发生时通知文档对象获取数据。 2、为每一个文档(或在每个文档内)创建一个单独的线程,以便这个线程能有规律地创建时间事件。 3、在CMainFrame中创建一个定时器并从中调用文档函数这三种方法我都不满意。能否给出一种更好的解决方案?
- 2023-07-11 15:35:03下载
- 积分:1
-
使用信号量对象实现线程的同步的一个实例
使用信号量对象实现线程的同步的一个实例- The use signal quantity object realizes a line regulation
synchronization example
- 2022-01-28 10:10:45下载
- 积分:1
-
基本上实现处理机对进程的最主要的调度执行算法:包括先来先服务、短作业/进程优先、时间片轮转调度算法、优先权调度算法、高响应比优先调度算法、多级反馈队列调度算法等...
基本上实现处理机对进程的最主要的调度执行算法:包括先来先服务、短作业/进程优先、时间片轮转调度算法、优先权调度算法、高响应比优先调度算法、多级反馈队列调度算法等算法。-Basically realize the main processor to process the implementation of the scheduling algorithm: including first-come, first serve, short operation/process priority, time slice rotation scheduling algorithm, priority scheduling algorithm, high priority response ratio scheduling algorithm, multi-level feedback queue scheduling algorithm such as algorithm.
- 2022-06-30 02:16:08下载
- 积分:1
-
pb的一个控制系统开机、关机、注销的程序。是一个例程。
pb的一个控制系统开机、关机、注销的程序。是一个例程。-pb of a control system boot and shutdown, cancellation procedures. It is a routine.
- 2022-10-20 07:55:03下载
- 积分:1
-
学习辅助线程不错的例子,主线程进行一般的数学运算,辅助线程定时开启,进度条显示辅助线程运行状态...
学习辅助线程不错的例子,主线程进行一般的数学运算,辅助线程定时开启,进度条显示辅助线程运行状态-Study aids a good example of thread, the main thread that involves a general mathematical calculations, auxiliary thread regularly opened, the progress bar shows auxiliary thread running
- 2022-06-01 07:59:30下载
- 积分:1
-
VC++ Prepared similar to FTP transfer tool. Can support multi
VC++编写的类似于FTP传输工具。可以支持多线程传输。-VC++ Prepared similar to FTP transfer tool. Can support multi-threaded delivery.
- 2023-01-25 11:55:08下载
- 积分:1
-
哲学家问题演示
不会哦,副教授法是发生副教授法寄生蜂机发射机发生发生棵...
哲学家问题演示
不会哦,副教授法是发生副教授法寄生蜂机发射机发生发生棵-philosopher Oh no demonstrated problem, law professor, associate professor of law occurred parasitoids machine transmitter happened happened with every tr
- 2022-09-23 19:30:03下载
- 积分:1
-
简单封装线程操作的C++类,需要派生才能使用。
简单封装线程操作的C++类,需要派生才能使用。-Simple to operate package thread C++ class, the need to use derivatives.
- 2022-02-27 07:42:47下载
- 积分:1
-
一个关于多线程实例的程序
一个关于多线程实例的程序-program about multi thread
- 2022-07-02 20:05:13下载
- 积分:1
-
simple realization of a systematic process management. Can see the current syste...
实现简单的系统进程管理。可察看当前系统中正在运行的进程,进程的基本信息。(如:进程大小、线程ID等)可终止某一进程。-simple realization of a systematic process management. Can see the current system running processes, the process of basic information. (Eg : Process size, thread ID, etc.) may terminate a process.
- 2022-01-26 07:00:45下载
- 积分:1