CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - vc ThreadManager
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - vc ThreadManager - List
[
Process-Thread
]
多线程管理器源代码thread manager
DL : 0
一个多线程管理实例程序。对于win32系统编程和多线程编程的人是一个很好的东西。-a multithreaded case management procedures. Win32 system for programming and multi-threaded programming is a good thing.
Date
: 2025-07-06
Size
: 46kb
User
:
xuxu
[
Other
]
test4
DL : 0
大家知道在VC++中我们可以用CreateThread创建一个线程,该函数返回这线程的Handle,以后我们就可以用这个Handle来管理这个线程的。于是我们可以做一个类名为ThreadManager,来管理这些Handle,并随时监控这些线程的状态。 总的思想就是这样,不过为了方便使用,我们最好把这个类封装成DLL的形式,这样以后我们在任何程序中都可以很方便的用该类来管理线程了(当然如果你有兴趣,也可以用COM模型来实现)。 -We all know that in VC++, we can create a thread using CreateThread, the function returns this thread Handle, since we can use the Handle to manage this thread. So we can do a class called ThreadManager, to manage these Handle, and always monitor the status of these threads. The overall idea is so, but for ease of use, we better package this class in the form of a DLL, so that later we can easily use this class to manage threads in any program (of course, if you are interested, too COM model can be used to achieve).
Date
: 2025-07-06
Size
: 1kb
User
:
衣谷
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.