搜索资源列表
解决生产者-消费者问题
- public class Server extends Thread { Client client int counter public Server(Client _client) { this.client = _client this.counter = 0 } public void run() { while (counter < 10) { this.client.queue.addElement(new Integer(counter)) counter++ } throw
Thunk.rar
- 网络上流行的Thunk技术,主要用于将成员函数变为线程函数或窗口过程.弥补了static成员函数不能访问非静态成员数据的缺点,最典型的应用就是微软的MFC和ATL中的窗口类实现,此原码也是网上公开的一个Thunk类实现,Thunk popular network technology, mainly for the membership function into a thread function or the window procedure. Up for static member fu
Mythread
- vc线程操作,实现vc的线程的基本操作。同时包含最基本的操作-vc Thread
CPort
- CSerialPort是基于多线程的,其工作流程如下:首先设置好串口参数,再开启串口监测工作线程,串口监测工作线程监测到串口接收到的数据、流控制事件或其它串口事件后,就以消息方式通知主程序,激发消息处理函数来进行数据处理,这是对接收数据而言的;发送数据可直接向串口发送。 -CSerialPort is based on multi-threaded, its workflow is as follows: First, set the serial port parameters, and
