搜索资源列表
解决生产者-消费者问题
- 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