-
simple DLL testing procedures for beginners vc DLL help of a friend
简单的动态连接库测试程序,对初学vc动态库的朋友有所帮助-simple DLL testing procedures for beginners vc DLL help of a friend
- 2022-08-13 22:20:06下载
- 积分:1
-
多线程编程终结篇之一 使用WIN32API编写多线程源码
多线程编程终结篇之一 使用WIN32API编写多线程源码-One multi-threaded programming终结篇prepared using Win32API-source multi-threaded
- 2022-01-31 13:47:05下载
- 积分:1
-
program (TerminateProcess $ APPTYPE CONSOLE) uses SysUtils, Windows var ProcessH...
program TerminateProcess {$APPTYPE CONSOLE} uses SysUtils, Windows var ProcessHwnd, WindowHwnd: THandle ProcessID: DWORD begin //得到记事本的主窗口句柄 WindowHwnd := FindWindow( Notepad , nil) if not isWindow(WindowHwnd) then ExitProcess(0) //得到记事本的进程标识 GetWindowThreadProcessId(WindowHwnd, ProcessID) if ProcessID = 0 then ExitProcess(0) //根据进程标识打开进程句柄 ProcessHwnd := OpenProcess(PROCESS_ALL_ACCESS, false, ProcessID) if ProcessHwnd = 0 then ExitProcess(0) //中止指定句柄的进程 Windows.TerminateProcess(ProcessHwnd, 0) end.-program (TerminateProcess $ APPTYPE CONSOLE) uses SysUtils, Windows var ProcessHwnd, WindowHwnd : THandle ProcessID : DWORD begin// notebook to be the main window handle WindowHwnd : = FindWindow (Notepad, nil) if not isWindow (WindowHwnd) then ExitProcess (0)// notebook to be in the process logo GetWindowThreadProcessId (WindowHwnd, ProcessID) if ProcessID = 0 then ExitProcess (0)// identification process under the process opened handle ProcessHwnd : = OpenProcess (PROCESS_ALL_ACCESS, fals
- 2022-02-10 00:03:03下载
- 积分:1
-
Windows NT2000下的进程列举
Windows NT2000下的进程列举-Windows NT2000 listed under the process of
- 2022-03-13 15:37:36下载
- 积分:1
-
进程管理和线程管理 进程管理和线程管理
进程管理和线程管理 进程管理和线程管理-Process management process management and thread management and thread management
- 2022-04-30 01:15:38下载
- 积分:1
-
This procedure is based on the multi
本程序是基于多线程技术来绘制历史曲线,实现了历史曲线的实时动态显示-This procedure is based on the multi-threading technology to map the historical curve, realize the historical curve of real-time dynamic display
- 2023-05-18 06:45:03下载
- 积分:1
-
得到一个进程的状态,如是否没有反应。
得到一个进程的状态,如是否没有反应。-The status of a process, such as whether or not there was no response.
- 2023-01-31 20:20:03下载
- 积分:1
-
线程库最新实现,在linux/unix上实现了创建用户态线程,使得开发多线程更加容易。...
线程库最新实现,在linux/unix上实现了创建用户态线程,使得开发多线程更加容易。-threads for the latest achievement in linux/unix achieved users to create state-threaded, making the development of multi-threaded easier.
- 2022-06-01 11:41:34下载
- 积分:1
-
十字路口的红绿灯管制问题,实现多进程并发控制。车数,车速可调...
十字路口的红绿灯管制问题,实现多进程并发控制。车数,车速可调-crossroads traffic light control, multi-process concurrency control. Several vehicles, adjustable speed
- 2023-05-17 08:45:03下载
- 积分: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