登录
首页 » Process-Thread » 利用CEvent实现多线程同步

利用CEvent实现多线程同步

于 2023-04-12 发布 文件大小:39.56 kB
0 109
下载积分: 2 下载次数: 1

代码说明:

利用CEvent实现多线程同步-CEvent use synchronous multi-threaded

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

发表评论

0 个回复

  • the NT environment hidden process, the user is unaware of the conditions, the im...
    在NT环境下隐藏进程,也就是说在用户不知情的条件下,执行自己的代码的方法有很多种,比如说使用注 册表插入DLL,使用Windows挂钩等等。其中比较有代表性的是Jeffrey Richer在《Windows核心编程》中 介绍的LoadLibrary方法和罗云彬在《Windows环境下32位汇编语言程序设计》中介绍的方法。两种方法的 共同特点是:都采用远程线程,让自己的代码作为宿主进程的线程在宿主进程的地址空间中执行,从而达 到隐藏的目的。相比较而言,Richer的方法由于可以使用c/c++等高级语言完成,理解和实现都比较容易 ,但他让宿主进程使用LoadLibrary来装入新的DLL,所以难免留下蛛丝马迹,隐藏效果并不十分完美。罗 云彬的方法在隐藏效果上绝对一流,不过,由于他使用的是汇编语言,实现起来比较难(起码我写不了汇 编程序:))。笔者下面介绍的方法可以说是对上述两种方法的综合:采用c/c++编码,实现完全隐藏。并 且,笔者的方法极大的简化了远程线程代码的编写,使其编写难度与普通程序基本一致。-the NT environment hidden process, the user is unaware of the conditions, the implementation of their code There are various ways, for instance, the use of the registry into DLL, etc. linked to the use of Windows. The more representative Jeffrey Richer is the "core Windows programming" introduced by the LoadLibrary method and the Luo Bin, "under Windows 32 assembly language programming" introduced by the method. Two methods are common features are : remote threads are used to keep the code as host process threads in t
    2022-03-23 05:27:10下载
    积分:1
  • 使用C写的主子线程的通讯,相信看后会对线程和线程通讯多一些了解。...
    使用C写的主子线程的通讯,相信看后会对线程和线程通讯多一些了解。-Written using the C master thread of communication, I believe, after watching threads and thread would be a little more understanding of communication.
    2022-02-05 14:36:52下载
    积分:1
  • 用户自己实现的一种加锁同步算法
    用户自己实现的一种加锁同步算法- User realize one kind locks the synchronized algorithm
    2023-07-13 22:15:02下载
    积分:1
  • every 5 minutes to check the current system that process memory used most, and w...
    每隔5分钟查看一下当前系统中那个进程占用的内存最大,并写日志文件-every 5 minutes to check the current system that process memory used most, and write log files
    2022-02-12 23:33:43下载
    积分:1
  • 在Windows 2000/XP/2003环境下,创建一个包含N个线程的控制台进程。用这n个线程来表示n个读者或写者。每个线程按相应测试数据文件(后面有介绍)的...
    在Windows 2000/XP/2003环境下,创建一个包含N个线程的控制台进程。用这n个线程来表示n个读者或写者。每个线程按相应测试数据文件(后面有介绍)的要求进行读写操作。用信号量机制分别实现读者优先和写者优先的读者一写者问题。-Windows 2000/XP/2003 environment, the creation of an N threads include the console process. Use of these n threads to express n readers who write. Each thread according to the corresponding test data files (with a) on the request and write. Using signal mechanism volume respectively priority and the readers who wrote a priority of readers wrote persons.
    2022-01-25 16:06:10下载
    积分:1
  • 5个多线程程序小例子
    5个多线程程序小例子-Examples of five multi_thread programs
    2022-01-25 18:47:51下载
    积分:1
  • serial communication interface protocol data generated statements EXCEL
    能通串口接口协议的数据生成EXCEL报表-serial communication interface protocol data generated statements EXCEL
    2023-07-27 22:25:03下载
    积分:1
  • 读者写者问题实现
    读者写者问题实现-readers to write to achieve the problem
    2023-06-12 23:45:03下载
    积分:1
  • 程序运行结束删除本!
    程序运行结束删除本!-running deleted from the end!
    2022-04-01 11:35:37下载
    积分:1
  • c++builder下的多线程例程,多线程演示三种排序方法,为初学者理解多线程很有帮助~!...
    c++builder下的多线程例程,多线程演示三种排序方法,为初学者理解多线程很有帮助~!-c++ builder under the routine multi-threaded, multi-threaded sort of three methods of presentation, for beginners to understand multi-threaded helpful ~!
    2022-04-25 12:34:18下载
    积分:1
  • 696518资源总数
  • 106245会员总数
  • 18今日下载