Click here to Skip to main content
15,898,538 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi dears,
please guide me how can I learn to implement multitread in c++ in practice?
Posted
Comments
pasztorpisti 20-Oct-13 11:19am    
If you want to learn it then it will unfortunately take at least months but rather years to understand it well and to get used to the patterns and their application.

This is quite a complicated issue, so you woul dhave would need to result resort to Google[^] I think.
 
Share this answer
 
v2
Comments
pasztorpisti 20-Oct-13 11:19am    
+5, Agree.
Kenneth Haugland 20-Oct-13 11:31am    
Thanks :-)
Albert Holguin 20-Oct-13 20:50pm    
Astonishing this Google! ...discovery of the century! ...+5
Threading wasn't really part of the C++ standard until recently, so implementations varied according to operating system. Because of this, a lot of libraries existed with helping keep source independent of OS and so they also included threading as part of their offering (Qt,Boost,etc.). Even so, there are a TON of references online regarding the subject.

C++11 standard threads:
C++ 11 Threads: Make your (multitasking) life easier.[^]
C++11 threads, locks and condition variables[^]

Windows threads:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms682516(v=vs.85).aspx[^]

POSIX threads (Linux, Solaris, OS X, although can be made to run in Windows too):
https://computing.llnl.gov/tutorials/pthreads/[^]

Libraries that include threading:
http://qt-project.org/doc/qt-4.8/threads.html[^]
http://www.boost.org/doc/libs/1_54_0/doc/html/thread.html[^]
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 20-Oct-13 21:20pm    
My 5 for useful references, however, formally, OP asks (quite naively) about implementation of threading, and you are talking about the use of already implemented threading system. As I was the one who actually implemented one of the multithreading systems, at the level of CPU instructions, I know that it's much more difficult, hope you understand that, too...
—SA
Albert Holguin 21-Oct-13 13:18pm    
Oh, you may be right. I may have misinterpreted the question. Thanks SA.

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