-
在实际问题中,我们需要在VB中得到更精确的时间事件触发,timer控件的精度只达到30ms,该程序应用timeSetEvent多媒体函数实现1ms的精确事件触发...
在实际问题中,我们需要在VB中得到更精确的时间事件触发,timer控件的精度只达到30ms,该程序应用timeSetEvent多媒体函数实现1ms的精确事件触发。-on practical issues, we need to be in VB more precise time trigger events, The timer control precision is only 30 ms. Application procedures for the multimedia function timeSetEvent ms achieve a precise trigger events.
- 2023-06-10 01:00:03下载
- 积分:1
-
用visual c++ 6.0开发的一个创建、关闭线程的例子,非常适合初学者学习利用API来创建线程...
用visual c++ 6.0开发的一个创建、关闭线程的例子,非常适合初学者学习利用API来创建线程-with visual c 6.0 creation of a closed-thread example, very suitable for beginners learning to use the API to create threads
- 2022-01-25 19:26:43下载
- 积分:1
-
一个测试线程的例子,线程的唤醒,挂起,是否存在,
一个测试线程的例子,线程的唤醒,挂起,是否存在,-Example of a test thread, the thread to wake up, hang, is there,
- 2023-03-20 13:25:03下载
- 积分:1
-
本程序用VC编写,主要用于演示如何实现多线程多任务。
本程序用VC编写,主要用于演示如何实现多线程多任务。-the procedures used to prepare VC, mainly for demonstrating how to achieve multi-threaded multi-task.
- 2023-04-25 01:20:03下载
- 积分:1
-
我编了一个类似Windows 2000 上性能监视器的程序。在这个程序中,我创建了一个文档对象和几个视图。文档对象负责有规律地采集数据,然后通知相关的视图以不同...
我编了一个类似Windows 2000 上性能监视器的程序。在这个程序中,我创建了一个文档对象和几个视图。文档对象负责有规律地采集数据,然后通知相关的视图以不同的格式显示这些数据。文档对象为了有规律地采集数据,它需要一个定时(time)事件。但是,文档不是一个基于窗口的对象,所以它没有这样的定时事件。我权衡了三种解决方案: 1、在其中的一个视图中创建定时器。当事件发生时通知文档对象获取数据。 2、为每一个文档(或在每个文档内)创建一个单独的线程,以便这个线程能有规律地创建时间事件。 3、在CMainFrame中创建一个定时器并从中调用文档函数这三种方法我都不满意。能否给出一种更好的解决方案?
- 2023-07-11 15:35:03下载
- 积分: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
-
工作者线程应用实例,图形界面方式显示,初学多线程朋友的必看程序~...
工作者线程应用实例,图形界面方式显示,初学多线程朋友的必看程序~
- 2023-02-08 16:30:04下载
- 积分:1
-
readers to write source code problem. I included in the Notes. Not joined the pr...
读者写者问题源码.包含我的注释.
没有加入工程文件.
只有一个R&W.cpp.在vc++6.0下编译成功.
在Windows 2000 环境下,创建一个包含n 个线程的控制台进程。用这n 个线程来表示n 个读者或写者。每个线程按相应测试数据文件的要求,进行读写操作。请用信号量机制实现读者-写者问题(读者优先)。
读者-写者问题的读写操作限制:
1)写-写互斥;
2)读-写互斥;
3)读-读允许;
读者优先的附加限制:如果一个读者申请进行读操作时已有另一读者正在进行读操作,则该读者可直接开始读操作。
运行结果显示要求:要求在每个线程创建、发出读写操作申请、开始读写操作和结束读写操作时分别显示一行提示信息,以确信所有处理都遵守相应的读写操作限制。
下面是一个测试数据文件的例子:
1 R 3 5 2 W 4 5 3 R 5 2 4 R 6 5 5W 5 3
-readers to write source code problem. I included in the Notes. Not joined the project documents. Only one R
- 2023-05-26 02:50:03下载
- 积分:1
-
一个使用匿名管道实现进程间通讯的程序
一个使用匿名管道实现进程间通讯的程序- A use anonymous pipeline realizes the advancement the
communication procedure
- 2023-04-25 20:50:03下载
- 积分:1
-
VC目录:
演示Viusal C++中创建多线程的方法
编译环境要求:
安装Viusal C++6.0
主要文件说明:
ThreadD...
VC目录:
演示Viusal C++中创建多线程的方法
编译环境要求:
安装Viusal C++6.0
主要文件说明:
ThreadDemo.cpp: 演示创建线程的C++文件
run.cmd:自动打开一个命令窗口执行程序的脚本文件-VC Contents : Presentations Khan C to create multiple threads of environmental requirements compiler : 6.0 C contemplating the installation of key documents : ThreadDemo.cpp : Presentations create threads document run.cmd C : automatic orders to open a window to the procedure script file
- 2023-05-12 08:35:03下载
- 积分:1