Click here to Skip to main content
16,011,711 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalmultiple adapter loopback test using CSockets Pin
gus15-Mar-02 9:13
gus15-Mar-02 9:13 
GeneralRe: multiple adapter loopback test using CSockets Pin
Tim Deveaux15-Mar-02 9:53
Tim Deveaux15-Mar-02 9:53 
GeneralRe: multiple adapter loopback test using CSockets Pin
gus15-Mar-02 10:26
gus15-Mar-02 10:26 
GeneralRe: multiple adapter loopback test using CSockets Pin
Tim Deveaux15-Mar-02 11:42
Tim Deveaux15-Mar-02 11:42 
GeneralRe: multiple adapter loopback test using CSockets Pin
gus19-Mar-02 4:15
gus19-Mar-02 4:15 
GeneralList control refresh issue Pin
Andrew Stampor15-Mar-02 8:48
Andrew Stampor15-Mar-02 8:48 
GeneralRe: List control refresh issue Pin
Shog915-Mar-02 8:59
sitebuilderShog915-Mar-02 8:59 
GeneralThread questions........... Pin
15-Mar-02 8:34
suss15-Mar-02 8:34 
Hi,

I'm a new babie in Thread programming, and now i'm trying to taste what is thread programming. Now I got a sample program that using <process.h> library. It uses _beginthread(transaction1, 0, (void *) obj) to create a thread. My questions are:

1. What are those parameters mean?
2. I know....end_thread() is to end the thread....but can I suspend awhile and then resume a thread??? What are their function names?
3. If I want to create 1000 transaction at once (doing the same thing), can I use a for loop to loop 1000 times and create this thread?? If YES, how can i choose which thread to end/suspend/resume???

e.g. for i = 1 to 1000
_beginthread(transaction, ..... )

I got lots of articles about thread in MFC. But i just want to understand this sample program first. Can anyone help me????

THANK YOU!!!!!!!!!!!!!!!! Smile | :)
GeneralRe: Thread questions........... Pin
Andres Manggini15-Mar-02 9:47
Andres Manggini15-Mar-02 9:47 
GeneralRe: Thread questions........... Pin
Nemanja Trifunovic15-Mar-02 10:19
Nemanja Trifunovic15-Mar-02 10:19 
GeneralRe: Thread questions........... Pin
Christopher Duncan15-Mar-02 11:36
Christopher Duncan15-Mar-02 11:36 
GeneralRe: Thread questions........... Pin
Tim Smith15-Mar-02 11:43
Tim Smith15-Mar-02 11:43 
GeneralRe: Thread questions........... Pin
Christopher Duncan15-Mar-02 15:23
Christopher Duncan15-Mar-02 15:23 
GeneralTHANK YOU ALL!!!!!!!!!!!!!!!!!!!!!!!!!!!! Pin
15-Mar-02 21:24
suss15-Mar-02 21:24 
GeneralDCOM with Visual C++ Pin
15-Mar-02 8:23
suss15-Mar-02 8:23 
GeneralRe: DCOM with Visual C++ Pin
Anand Amirineni15-Mar-02 14:54
Anand Amirineni15-Mar-02 14:54 
QuestionHow to stop this memory leak? Pin
Mark Tutt15-Mar-02 8:03
Mark Tutt15-Mar-02 8:03 
AnswerRe: How to stop this memory leak? Pin
Christian Graus15-Mar-02 10:27
protectorChristian Graus15-Mar-02 10:27 
GeneralRe: How to stop this memory leak? Pin
Mark Tutt15-Mar-02 10:32
Mark Tutt15-Mar-02 10:32 
GeneralStrings!!! Pin
15-Mar-02 7:49
suss15-Mar-02 7:49 
GeneralRe: Strings!!! Pin
Mike.NET15-Mar-02 8:00
Mike.NET15-Mar-02 8:00 
QuestionHow to make MFC apps use less RAM? Pin
Mike.NET15-Mar-02 7:44
Mike.NET15-Mar-02 7:44 
AnswerRe: How to make MFC apps use less RAM? Pin
Shog915-Mar-02 7:53
sitebuilderShog915-Mar-02 7:53 
GeneralVisual Studio .NET customization Pin
Todd Smith15-Mar-02 7:26
Todd Smith15-Mar-02 7:26 
GeneralCalling CListview in MDI application Pin
Jasmyn15-Mar-02 6:05
Jasmyn15-Mar-02 6:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.