Click to See Complete Forum and Search --> : Understanding Threading
justin2021
September 2nd, 2007, 03:46 AM
I'm having a really hard to trying to understand threading. It seems that all the sites I've been to trying to comprehend it, do it all differently. Is there any 1 easy, normal way to do threading? Maybe there's some things I should read up on before I get into it? I really want to understand because I know it's an important feature that I will have to use eventually.
laitinen
September 2nd, 2007, 04:04 AM
Maybe this article may help you: Simple Thread: Part 1 (http://www.codeguru.com/cpp/misc/misc/threadsprocesses/article.php/c14105/)
As of today, part 2 is not "released" yet, but I am sure you will be busy with part 1 until part 2 is available.
Apart from this article, Arjay has written at least two other articles on threading. You will find them if you do a search here on CodeGuru.
Also, you may want to have a look at the FAQ section: FAQ: MFC Threads (http://www.codeguru.com/forum/showthread.php?t=350757#mfc_thread) and FAQ: Windows SDK Threads (http://www.codeguru.com/forum/showthread.php?t=350759#sdk_thread)
Hope you find this post useful!
Laitinen
Marc G
September 3rd, 2007, 04:31 AM
[ moved thread ]
valikac
September 8th, 2007, 09:03 AM
One important reason behind multithreading is efficiency. In Windows (Linux, etc.), a multithreaded software application allows context-switch for multiple threads. Each thread would manage a particular task. It gets more complicated, but for now you need to understand the idea of doing tasks simultaneously. There is significant increase in performance on multi-core technology and of course multiple processors.
valikac
codeguru.com
Copyright 2007 Jupitermedia Corporation All Rights Reserved.