-
我编了一个类似Windows 2000 上性能监视器的程序。在这个程序中,我创建了一个文档对象和几个视图。文档对象负责有规律地采集数据,然后通知相关的视图以不同...
我编了一个类似Windows 2000 上性能监视器的程序。在这个程序中,我创建了一个文档对象和几个视图。文档对象负责有规律地采集数据,然后通知相关的视图以不同的格式显示这些数据。文档对象为了有规律地采集数据,它需要一个定时(time)事件。但是,文档不是一个基于窗口的对象,所以它没有这样的定时事件。我权衡了三种解决方案: 1、在其中的一个视图中创建定时器。当事件发生时通知文档对象获取数据。 2、为每一个文档(或在每个文档内)创建一个单独的线程,以便这个线程能有规律地创建时间事件。 3、在CMainFrame中创建一个定时器并从中调用文档函数这三种方法我都不满意。能否给出一种更好的解决方案?
- 2023-07-11 15:35:03下载
- 积分:1
-
多线程方式同时进行多项任务,让多个任务同时进行,控制线程的运行。...
多线程方式同时进行多项任务,让多个任务同时进行,控制线程的运行。-multiple threads simultaneously a number of tasks so that multiple tasks simultaneously, control threads running.
- 2022-07-13 04:42:06下载
- 积分:1
-
获取系统正在运行的进程ID
获取系统正在运行的进程ID-acquisition system is running the process ID
- 2022-07-19 21:07:59下载
- 积分:1
-
关于线程的代码,很实用,希望大家多多支持,互相学习
关于线程的代码,很实用,希望大家多多支持,互相学习-Code on the thread, very useful, hope that we can support and learn from each other
- 2022-08-15 15:43:07下载
- 积分:1
-
using the BACC compiler, and then run BAINTERP
先用BACC编译,再用BAINTERP运行-using the BACC compiler, and then run BAINTERP
- 2022-03-17 18:53:05下载
- 积分:1
-
进程管理和线程管理 进程管理和线程管理
进程管理和线程管理 进程管理和线程管理-Process management process management and thread management and thread management
- 2022-03-20 18:05:24下载
- 积分:1
-
展示VC中多线程的编程方法,如线程创建、事件触发、结束线程、线程同步等多种技术...
展示VC中多线程的编程方法,如线程创建、事件触发、结束线程、线程同步等多种技术-display VC multithreaded programming methods, such as thread creation, event trigger, the end of threads, thread synchronization techniques
- 2022-04-19 03:41:01下载
- 积分:1
-
演示了列举系统所有进程,并且强制结束,希望对大家有帮助...
演示了列举系统所有进程,并且强制结束,希望对大家有帮助-demonstrated a list of all system processes, and the end of compulsory, and I hope to be helpful
- 2022-07-24 08:37:47下载
- 积分:1
-
多
多进程的解决方案 :
创建一个包含四个窗口的多任务模拟:第一个窗口必须显示一系列的递增偶数;第二个窗口必须显示一系列的递增素数;第三个窗口必须显示任意半径的圆;第四个窗口必须显示一系列的随机矩形。-multi-process solution : Create a window contains four multi-task simulation : a window to show a series of incremental even; The second window must show a series of incremental prime; The third window must demonstrate arbitrary radius of the circle; The fourth window must show a series of random Rectangular.
- 2022-06-16 21:29:06下载
- 积分:1
-
大家共享好东西,
尤其是学C++的出血者
大家共享好东西,
尤其是学C++的出血者-share good things, especially learning C bleeding
- 2023-03-10 02:10:03下载
- 积分:1