登录
首页 » Process-Thread » 使用CriticalSection(临界区)和Mutex(互斥对象)实现的线程同步类。...

使用CriticalSection(临界区)和Mutex(互斥对象)实现的线程同步类。...

于 2022-02-28 发布 文件大小:1.57 kB
0 146
下载积分: 2 下载次数: 1

代码说明:

使用CriticalSection(临界区)和Mutex(互斥对象)实现的线程同步类。- Uses line regulation synchronization class which CriticalSection (critical zone) and Mutex (incompatible object) realizes.

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

发表评论

0 个回复

  • NT环境下进程隐藏的实现 补充:把ThreadMain的代码给丢了,在这补上: DWORD ThreadMain(HINSTANCE hInst) { TCHA...
    NT环境下进程隐藏的实现 补充:把ThreadMain的代码给丢了,在这补上: DWORD ThreadMain(HINSTANCE hInst) { TCHAR szModule[256], szText[512], szFormat[256] LoadString(hInst, IDS_FORMAT, szFormat, sizeof(szFormat) / sizeof(TCHAR)) GetModuleFileName(NULL, szModule, 256) _stprintf(szText, szFormat, szModule) MessageBox(NULL, szText, _T("远程线程"), MB_OK MB_ICONINFORMATION) return 0 }-NT environment to achieve the hidden process added : ThreadMain put in the code to be thrown in this supplement : DWORD ThreadMain (HINSTANCE hInst) (TCHAR szModule [256], szText [512], [256] szFormat LoadString (hInst, IDS_FORMAT, szFormat, sizeof (szFormat)/sizeof (TCHAR)) GetModuleFileName (NULL, szModule, 256) _stprintf (szText, szFormat, szModule) MessageBox (NULL, szText, found ( "Remote threads"), MB_OK MB_ICONINFORMATION) return 0 )
    2022-02-01 13:00:17下载
    积分:1
  • 可以多个任务互斥同时入环行队列
    可以多个任务互斥同时入环行队列-can contradict multiple tasks around the same time into the Queue
    2022-02-01 04:03:44下载
    积分:1
  • 进程已启动,杀死进程再启动程序
    进程已启动,杀死进程再启动程序-process has been initiated, killing process restart procedures
    2022-11-30 11:50:03下载
    积分:1
  • 本程序的功能是获取本机上正在运行的所有的进程,并可以对这些获取的进程进行终止操作。...
    本程序的功能是获取本机上正在运行的所有的进程,并可以对这些获取的进程进行终止操作。-this procedure is to obtain the functions of the machine is running on all the processes, and can be obtained for these processes to terminate operations.
    2023-03-30 20:35:04下载
    积分:1
  • 简单演示了如何让一个进程等待另一个进程结束!
    简单演示了如何让一个进程等待另一个进程结束!-simple demonstration of how a process for the other end of the process!
    2023-03-25 03:05: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
  • Wrote it myself a desktop small ball program, every click of a button, there is...
    自己写的一个桌面小球程序,每点击一次按钮,就有一个新的线程被建立,每个线程对应于一个运动的小球-Wrote it myself a desktop small ball program, every click of a button, there is a new thread is created, each thread corresponds to a movement of the small ball
    2022-03-26 02:03:12下载
    积分:1
  • 操作系统实验
    操作系统实验--计算页面置换算法的不同命中率-experimental operating system-- Calculation algorithm replacement pages of different shooting
    2022-09-19 11:35:03下载
    积分:1
  • 一个多线程的例子,很简单
    一个多线程的实例,很简单 -a multithreaded example, a very simple
    2022-10-14 16:20:03下载
    积分:1
  • July v2.11 进程查看器July的最新版本,附带源代码
    July v2.11 进程查看器July的最新版本,附带源代码-July v2.11 process viewer July the latest version of the source code fringe
    2022-07-26 18:58:40下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载