Click to See Complete Forum and Search --> : About mutithread programing
April 22nd, 1999, 01:53 AM
Thanks to view my post!
I want to learn how to create a project with mutithread,
would you like to tell me how to begin it?
my e-mail address is yaohaihong@990.net
Thank you!!!
delbert Harry
April 22nd, 1999, 11:54 AM
Go and look at the CMTGDI sample for vc
chris law
April 22nd, 1999, 01:56 PM
Do plan your steps thouroughly!
Do you really need multithreading?
what communication is needed?
shared data?
does second thread need message loop (user interaction)?
Only after you have visualized the whole design of the program begin writing (I've learned the hard way)
To start a new thread is not very difficult. The thread procedure must be static! whithin the class, so if you want more than one instance, pass a this pointer to the actual instance as parameter in CreateThread function. Link with multithreading librarys (in project settings)
hope this offers some help
chrislaw
April 22nd, 1999, 02:37 PM
For books Win32 Multithreaded Programming by O'Reilly and a big part of Julian Templeman's somewhat deciving title "Beginning Windows NT Programming" by Wrox be my recommendations.
yalcin
sally
April 23rd, 1999, 12:16 AM
Study existing examples
Ask questions
Experiment
BUT remember, all your shared data need to be protected in Critical Sections EVEN if you are just peeking at the value
The latter is true on NT platforms with multiple processors
sally
Sally
April 23rd, 1999, 12:16 AM
Study existing examples
Ask questions
Experiment
BUT remember, all your shared data need to be protected in Critical Sections EVEN if you are just peeking at the value
The latter is true on NT platforms with multiple processors
sally
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.