-
一个多任务应用程序。带有四个彩色转轮的应用程序,每个彩色转轮都按自己的线程运行。其中两个使用OnIdle函数;另外两个则作为独立的线程运行。...
一个多任务应用程序。带有四个彩色转轮的应用程序,每个彩色转轮都按自己的线程运行。其中两个使用OnIdle函数;另外两个则作为独立的线程运行。-a multi-tasking applications. Color wheel with four applications, each color wheel has its own threads to run. Two of them use OnIdle function; The other two were used as the independent threads running.
- 2022-05-17 14:55:08下载
- 积分: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
-
本地进程的扫描,一个简单的例子,源码在txt文件中
本地进程的扫描,一个简单的例子,源码在txt文件中-local scanning process, a simple example, the source document in txt
- 2023-01-17 05:25:03下载
- 积分:1
-
对文件读写进行共享加锁的一个学习例子
对文件读写进行共享加锁的一个学习例子- Read-write carries on a study example to the document which
sharing locks
- 2022-01-22 16:16:22下载
- 积分:1
-
Visual C++课程设计案例精编(第二版)
提供的一个系统进程管理器...
Visual C++课程设计案例精编(第二版)
提供的一个系统进程管理器-Visual C curriculum design case precision series (2nd edition) provides a system for process management
- 2022-02-26 17:59:24下载
- 积分:1
-
一般而言,应用程序中的一个次要线程总是为主线程执行特定的任务,这样,主线程和次要线程间必定有一个信息传递的渠道,也就是主线程和次要线程间要进行通信。这种线程间...
一般而言,应用程序中的一个次要线程总是为主线程执行特定的任务,这样,主线程和次要线程间必定有一个信息传递的渠道,也就是主线程和次要线程间要进行通信。这种线程间的通信不但是难以避免的,而且在多线程编程中也是复杂和频繁的,下面将进行说明。-Generally speaking, the application of a secondary thread is always the main thread to perform a specific task, so that main thread and secondary threads must have a channel for the transmission of information, which is the main thread and the secondary thread to communicate between. This inter-thread communication is not only inevitable, but also in multi-threaded programming is complex and frequent, the following description will be carried out.
- 2022-03-06 14:41:20下载
- 积分:1
-
创建一个控制台进程,此进程包含n个线程。用这n个线程来表示n个读者或写者。每个线程按相应测试数据文件的要求进行读写操作。用信号量机制实现读者优先的读者――写入者...
创建一个控制台进程,此进程包含n个线程。用这n个线程来表示n个读者或写者。每个线程按相应测试数据文件的要求进行读写操作。用信号量机制实现读者优先的读者――写入者问题。-the process of creating a console, this process contain n threads. Use of these n threads to express n readers who write. Each thread according to the corresponding test data document requests and write. Using signal volume mechanisms readers priority readers-- into the problem.
- 2023-01-18 05:40:03下载
- 积分:1
-
经典C程序源码,针对出学者哦!,希望对大家有帮助,希望大家多多上传啊...
经典C程序源码,针对出学者哦!,希望对大家有帮助,希望大家多多上传啊-classic C program source code, up against scholars Oh! , And I hope to be helpful, I hope Members can upload ah
- 2022-02-07 07:34:29下载
- 积分:1
-
多线程方式同时进行多项任务,让多个任务同时进行,控制线程的运行。...
多线程方式同时进行多项任务,让多个任务同时进行,控制线程的运行。-multiple threads simultaneously a number of tasks so that multiple tasks simultaneously, control threads running.
- 2022-07-13 04:42:06下载
- 积分:1
-
process management device, similar to windows task manager
进程管理器,类似于windows的任务管理器-process management device, similar to windows task manager
- 2023-05-10 12:55:03下载
- 积分:1