|
-
Oct 22nd, 2002, 11:22 AM
#4
Monday Morning Lunatic
Multithreading actually runs *slower* in absolute time, but frequently gives much better responses (you can control the execution from an interface).
If you have multiple CPUs then multiple threads will get scheduled concurrently. You can only have *one* thread running at once on a single CPU, they just get switched very quickly.
The easiest way of doing multithreading is to use the Boost Threads classes (www.boost.org). But, for simple things, use _beginthread (see MSDN). It's fairly self-explanatory
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|