搜索资源列表
Delphi_387374
- Delphi:在Delphi中的xe2 业务对象池应用演示,用于业务对象池解决delphi线程业务对象创建释放内不彻底的问题。从对象池中取出一个业务类实例对象,把一个业务类实例对象放回对象池中,指定放入池中的业务类。 -Delphi: xe2 business object pooling in Delphi demo applications for business objects delphi thread pool to solve business objects created
AsyncTask
- AsyncTask enables proper and easy use of the UI thread. This class allows to perform background operations and publish results on the UI thread without having to manipulate threads and or handlers.
SipSessionListenerProxy
- Class to help safely run a callback in a different thread Source Code for Linux.
JavaMine
- Java扫雷程序源码,java Swing实现的扫雷游戏程序源代码,内含需求分析+设计说明+程序文件说明。运行java StartJMine启动程序,或双击StartJMine.bat启动扫雷游戏主程序。程序框架都在JMine.java中。JMine.java 还包括两个线程类,分别为计时器线程和胜利后等待用户重起游戏的线程-Open Source Java Minesweeper, java Swing realize Minesweeper game source code, contain
pthreadcc
- For those wishing to develop multi-threaded applications in a C++ class oriented environment. This library allows creation of threads as classes as well as access to multi-threaded programming tools as class abstractions. Even if the basic prog
commons-email-1.3.3-bin.tar
- 与发Email有关, public class sendMessage extends Thread { @Override public void run(){ super.run() try{ HtmlEmail email = new HtmlEmail() email.setHostName( *.163.com ) email.setTLS(true) email.setSSL(true) email.setChars
mfcThread
- 通过使用 CEvent 类实现允许一个线程在某种情况发生时,唤醒另外一个线程的同步对象-By using CEvent class implementation allows one thread at the time of the occurrence of certain circumstances, wake up another thread synchronization object
MFC-USARTClass
- VC6.0 创建的一个MFC的串口类(创建线程进行数据接收),主要用于做窗口时需要用到串口问题的解决。-VC6.0 created a serial MFC class (create a thread for data reception), is mainly used to do when the window need to use a serial port on the solution of the problem.
Producer_Consumer
- 生产者-消费者线程,利用信号同步线程,利用锁保护线程类的成员变量-Producer- consumer threads, thread synchronization using a signal, use thread lock protection class member variable
MyLinuxThread
- 一个线程池的框架 Lock.cpp :锁的操作 , 读锁可以并发 , 写锁独占. Queue.h : 队列的封装 , 队列的读和写都加了锁的保护. Socket.cpp : 套接口的简单封装. Thread.cpp : 线程的封装实现了些简单的线程停止,运行等功能 , 启动别的线程的时候需要继承次类. Worker.cpp : 用户接口类 , 用户需继承此类。 ListenThread.cpp(继承Thread.cpp) : 服务器监听线程.如果有客户端连接通知Threa
Threads-and-Socket
- 适用于对threads和sockets入门-Counter.class :Counter extends Thread, count 10 to 500 CounterApp: two counter,two thread Buffer.java, Producer.java, and Consumer.java:Use to realize synchronization MyServer.java and MyClient.java :socket
Processid2windowshandle
- 自定义类,能通过进程名来获取窗口句柄,进程ID,主线程ID-Custom class name through the process to get the window handle, process ID, host thread ID
test2
- 用户界面线程示例: 在这个例子中我们要学会如何创建一个可以单独执行的功能,且可以和应用程序同时运行的线程,而且该线程需要自己的用户界面,也就是说用户的操作和你程序的运算不会有干扰。例如在文档应用程序中的查询和替换功能。在这个例子中我们需要使用框架中的AfxBegin Thread()函数来创建用户界面线程。这将对线程具有完全控制权,我们将创建自己的CWinThread派生线程类。 -User interface thread example: &
test4
- 大家知道在VC++中我们可以用CreateThread创建一个线程,该函数返回这线程的Handle,以后我们就可以用这个Handle来管理这个线程的。于是我们可以做一个类名为ThreadManager,来管理这些Handle,并随时监控这些线程的状态。 总的思想就是这样,不过为了方便使用,我们最好把这个类封装成DLL的形式,这样以后我们在任何程序中都可以很方便的用该类来管理线程了(当然如果你有兴趣,也可以用COM模型来实现)。 -We all know that in VC++, we
Writer_First
- 我是编程小菜鸟0.0 这是是OS课时模拟的读者写者问题的写者优先,使用线程,调试时须选择多线程方式。欢迎批评!- I was programming a small rookie 0.0 This is at OS simulation class readers-writers problem who write priority, the use of threads, shall multi-thread debugging. Welcome to criticize!
Csharp-timer
- C#中各种计时器:使用 Stopwatch 类;基于 Windows 的标准计时器;基于服务器的计时器;线程计时器;System.Environment.TickCount;使用TimeSpan类。-C# various timers: Using Stopwatch class a standard Windows-based timer timer-based servers thread timer System.Environment.TickCount use TimeSpa
ebt_nat
- Example: a member can be set on thread T1 and read by an internal audio thread T2. Accessing the member via this class ensures that we are safe and also avoid TSan v2 warnings.
CriticalSectionDemo
- 该例程摘自《Visual C++开发修行实录》,内容为使用临界区资源解决线程同步问题,其中使用的类为CCriticalSection-The routine is an excerpt Visual C++ development practice record , the contents of the use of critical resources to solve the problem of thread synchronization, which use the class
SemaphoreDemo
- 该例程摘自《Visual C++开发修行实录》,内容为使用计数器解决线程同步问题,其中使用的类为CSemaphore-The routine is an excerpt Visual C++ development practice record , the content of the counter used to solve the problem of thread synchronization, which use the class for csemaphore
so2
- 如何用非静态的类成员函数作为线程函数,简单易懂。-How to use the non static class member function as a thread function