Click here to Skip to main content
15,885,939 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
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
Comments
Sergey Alexandrovich Kryukov 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

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.
 
Share this answer
 
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. :-)

—SA
 
Share this answer
 
v2

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900