-
我编了一个类似Windows 2000 上性能监视器的程序。在这个程序中,我创建了一个文档对象和几个视图。文档对象负责有规律地采集数据,然后通知相关的视图以不同...
我编了一个类似Windows 2000 上性能监视器的程序。在这个程序中,我创建了一个文档对象和几个视图。文档对象负责有规律地采集数据,然后通知相关的视图以不同的格式显示这些数据。文档对象为了有规律地采集数据,它需要一个定时(time)事件。但是,文档不是一个基于窗口的对象,所以它没有这样的定时事件。我权衡了三种解决方案: 1、在其中的一个视图中创建定时器。当事件发生时通知文档对象获取数据。 2、为每一个文档(或在每个文档内)创建一个单独的线程,以便这个线程能有规律地创建时间事件。 3、在CMainFrame中创建一个定时器并从中调用文档函数这三种方法我都不满意。能否给出一种更好的解决方案?
- 2023-07-11 15:35:03下载
- 积分:1
-
windows message processing programming code, a simple message handling mechanism...
windows消息处理编程代码,简单的实现消息处理机制-windows message processing programming code, a simple message handling mechanism realize
- 2022-05-28 14:48:27下载
- 积分:1
-
先用BACC编译,再用BAINTERP运行
先用BACC编译,再用BAINTERP运行-using the BACC compiler, and then run BAINTERP
- 2022-02-26 16:34:23下载
- 积分:1
-
a trip can be used to transfer information within the paradigm used to address m...
一次出行可以用来传递范式内的信息,用来解决更多的信息访问,交流非常方便
- 2022-01-21 00:35:59下载
- 积分:1
-
模拟操作系统运行的源代码 Description: The object of this project is to write a C++ applicati...
模拟操作系统运行的源代码 Description: The object of this project is to write a C++ application to simulate the scheduler of a simple operating system.新手看linux源代码太困难,这个可是个不错的选择哦....不下可惜-simulation operating system source code Description : The object of this project is to write a C application to simulate the scheduler of a simple operating system. Linux newcomers to see the source code too difficult, but a good choice .... Oh no less than a shame! !
- 2022-06-18 21:04:46下载
- 积分:1
-
得到一个进程的状态,如是否没有反应。
得到一个进程的状态,如是否没有反应。-The status of a process, such as whether or not there was no response.
- 2023-01-31 20:20:03下载
- 积分:1
-
用vb.net编写的的实践多线程池的简单例子
用vb.net编写的的实践多线程池的简单例子-using vb.net prepared by the practice pool multithreading simple example
- 2022-05-11 02:17:24下载
- 积分:1
-
NT下未公开的多线程读,单线程写的函数, 了解它对多线程编程会起到非常大的作用....
NT下未公开的多线程读,单线程写的函数, 了解它对多线程编程会起到非常大的作用.-NT under undisclosed multi-thread reading, writing single-threaded function, to understand its multi-threaded programming will play a very large role.
- 2022-08-05 16:21:43下载
- 积分:1
-
操作系统中银行家算法的演示程序,银行家算法是避免死锁的方法,避免死锁的法则是,系统在运行过程中,对于进程的每一种资源请求都要根据预掌握的资源使用信息,按照一定的...
操作系统中银行家算法的演示程序,银行家算法是避免死锁的方法,避免死锁的法则是,系统在运行过程中,对于进程的每一种资源请求都要根据预掌握的资源使用信息,按照一定的算法,进行是否可能导致死锁的预测,以决定是否同意这一资源请求。这是向前看几步,知道保证不会导致死锁时再向前走一步的具有动态性质的预测算法。-operating system bankers algorithm Demonstration Program, bankers algorithm is a method to avoid deadlock and avoid deadlock the law is, the system in the process, the process for each type of resource in accordance with the request of the resources available to advance the use of information, according to some algorithm, leading to the possibility of death lock projections to decide whether the resource requests. This is a forward-looking steps, guaranteed not know Deadlock lead again when forward step with the dynamic nature of the forecast algorithm.
- 2023-08-20 23:10:03下载
- 积分:1
-
用vb2005编写的单线程应用方法的简单实例!
用vb2005编写的单线程应用方法的简单实例!-Vb2005 prepared using single-threaded applications simple examples!
- 2023-04-08 20:05:03下载
- 积分:1