▍1. EventThread
使用事件对象进行线程间的通信EventThreadEventThread.rar,很不错的vc源码,有兴趣的朋友可以看看。(Use the event object for inter-thread communication EventThread EventThread.rar, very good vc source, interested friends can see.)
使用事件对象进行线程间的通信EventThreadEventThread.rar,很不错的vc源码,有兴趣的朋友可以看看。(Use the event object for inter-thread communication EventThread EventThread.rar, very good vc source, interested friends can see.)
用CEVENT类中的event事件响应来做线程之间的通讯工作(failed to translate)
vc——使用临界区对象(CriticalSeciton)实现线程同步CriticalSecitonThreadSyn的程序源码,值得一看!(vc- use a critical section object (CriticalSeciton) to achieve thread synchronization CriticalSecitonThreadSyn the program source code, worth a visit!)
运行程序,单击“启动线程”按钮,程序将启动一个线程,线程将进行数值计算,并将结果发送给主窗口;单击“挂起线程”按钮,线程将挂起;单击“恢复线程”按钮,线程将恢复。(Run the program, click" start the thread" button, the program will start a thread, the thread will make numerical computation, and sends the result to the main window click" thread hang" button, the thread will be suspended click on" restore thread" button, the thread will recover.)
线程间的消息接收与发送 可作为多个线程通信的基础代码(Thread to receive and send messages between multiple threads can be used as the basis for communication code)
c++基于socket的多线程文件传输、断点传输等等接收端代码(c++ socket-based multi-threaded file transfer, transmission, and so the receiver code breakpoint)
Visual C++6源码,注射DLL到指定进程,使进程执行Dll的代码。(Visual C++6 source, injection DLL to specified process, the process of implementation of Dll code.)
一个关于多线程的时钟小程序,能够同时显示三个地点的时间(A small clock on the multi-threaded program that can simultaneously display the time at three locations)
使用CSemaphore类实现线程同步的实例源码(Thread Synchronization using CSemaphore class implements an instance of source code)
VC++系统开发实例精粹 进程查看程序代码 Process(VC++ instance of the essence of the process of system development Process view code)
剪贴板通信--虽然程序很简单,但是很好地解析了进程和线程的原理,是运用进程和线程的小例子(Clipboard communication- although a simple process, but the good analysis of the principles of process and thread, is to use a small example of the process and thread)
一个线程传输工具,用linux posix多线程编写,有点参考价值,欢迎交流。(file transport program, may be useful use multi-thread to transport files. It s very welcomed to discuss with.)
该函数创建,但并不启动线程,创建完后要通过wake_up_process启动(This function creates, but does not start the thread, create after start through wake_up_process)
windows下多线程计算3pcf问题的源码 直接编译运行即可 从文件中读取数据(Under the multi-threaded computing 3pcf windows source code directly compile and run the problem can be read from the file)
多线程计算π的程序源码 可以直接编译运行 采用了windows的多线程(Multi-threaded computation of π can directly compile and run the program source using multi-threaded windows)
说明: 多核程序设计的简介,多线程多实例,对于学习有很大的帮助(It s for the Linux,Windows programing.The history about the multinuclear.And good for studing)
说明: 编写一个程序,包括两个线程,一个线程用于模拟内存分配活动,另一个用于跟踪第一个线程的内存行为,要求两个线程之间通过信号量实现同步,模拟内存活动的线程可以从一个文件中读出要进行的内存操作。将VirtualAlloc函数的参数flAllocationType分别设置为MEM_RESET,MEM_TOP_DOWN,将flProtect参数分别设置为PAGE_GUARD,PAGE_NOACCESS,PAGE_NOCACHE,执行并查看内存分配的结果。(Write a program that consists of two threads, one thread is used to simulate the memory allocation activities, one for tracking the memory behavior of the first thread, requiring between two threads synchronize through semaphores to simulate the activities of the thread of memory from a read the file memory operations to be carried out. FlAllocationType the VirtualAlloc function parameters were set to MEM_RESET, MEM_TOP_DOWN, will flProtect parameters are set to PAGE_GUARD, PAGE_NOACCESS, PAGE_NOCACHE, execute and view the results of memory allocation.)
说明: 枚举进程名名,进程图标,进程路径。 内容: Project1.dpr Project1.dproj Project1.dproj.local Project1.identcache Project1.res Project1_project.tvsconfig Project1.exe Unit1.dfm Unit1.pas (Enumeration process name names, process icon, the process path. Content: Project1.dpr Project1.dproj Project1.dproj.local Project1.identcache Project1.res Project1_project.tvsconfig Project1.exe Unit1.dfm Unit1.pas)