Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ C++/CLI Windows Threading , +
Hey Code Project,
I was looking through the pages of info at this website but then i came across threads. The thing is i do not know what an thread is or how to use it. Would someone please tell me how to use it.
Regards,
Cyberwarfare.
Posted 1-Oct-12 7:50am
Comments
Sergey Alexandrovich Kryukov at 1-Oct-12 14:00pm
   
This is not a topic for just one question and answer. And -- C++ or C++/CLI? -- they are very different in this respect.
--SA
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

I have to agree with SA - this is far too big a subject for a Quick Answer, even if you ignore the language specific parts.
 
Time to start reading: Wikipedia[^] does a good overview of threading and what threads are. For more detail, most good development teaching books devote a chapter (or three) to teh subject.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

As I say, this is not a topic for just one question and answer. Please try to start here:
http://en.wikipedia.org/wiki/Thread_%28computing%29[^],
http://en.wikipedia.org/wiki/Multi-core_%28computing%29[^],
http://en.wikipedia.org/wiki/Thread_pool_pattern[^],
http://en.wikipedia.org/wiki/Thread_safety[^],
http://en.wikipedia.org/wiki/Thread_synchronization[^].
 
Now, managed threading for .NET:
http://msdn.microsoft.com/en-us/library/hh156548.aspx[^],
http://msdn.microsoft.com/en-us/library/3e8s7xdd%28v=vs.110%29.aspx[^],
http://msdn.microsoft.com/en-us/library/system.threading.aspx[^].
 
This is pretty long way to go. Don't expect some simple cookbook recipes or a quick conceptual fix — they would not be helpful at this stage. This is more of education than of quick training in some techniques. The only one conceptual fix for you would be this: this topic is not covered by a swift cavalry attack. Smile | :)
 
—SA
  Permalink  
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 235
1 Sergey Alexandrovich Kryukov 144
2 Rob Philpott 100
3 Peter Leow 70
4 CHill60 70
0 OriginalGriff 6,902
1 Sergey Alexandrovich Kryukov 5,623
2 Maciej Los 3,479
3 Peter Leow 3,373
4 DamithSL 2,505


Advertise | Privacy | Mobile
Web01 | 2.8.140721.1 | Last Updated 1 Oct 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100