Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 136,126 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,780 people online right now. Registration is fast and FREE... Join Now!




threading

 
Reply to this topicStart new topic

threading, looking for information

spullen
6 Apr, 2007 - 10:54 AM
Post #1

D.I.C Regular
Group Icon

Joined: 22 Mar, 2007
Posts: 330



Thanked: 1 times
Dream Kudos: 50
My Contributions
Does anyone have a good resource for threading. Is there a threading api in the STL?
Any information would be great.
User is offlineProfile CardPM
+Quote Post

Amadeus
RE: Threading
6 Apr, 2007 - 01:11 PM
Post #2

g++ -o drink whiskey.cpp
Group Icon

Joined: 12 Jul, 2002
Posts: 12,226



Thanked: 37 times
Dream Kudos: 25
My Contributions
POSIX threads or windows threads?
User is offlineProfile CardPM
+Quote Post

spullen
RE: Threading
6 Apr, 2007 - 03:42 PM
Post #3

D.I.C Regular
Group Icon

Joined: 22 Mar, 2007
Posts: 330



Thanked: 1 times
Dream Kudos: 50
My Contributions
windows threads
User is offlineProfile CardPM
+Quote Post

Xing
RE: Threading
8 Apr, 2007 - 11:09 PM
Post #4

D.I.C Addict
Group Icon

Joined: 22 Jul, 2006
Posts: 723



Thanked: 2 times
Dream Kudos: 1575
My Contributions
Check Boost.Threads
User is offlineProfile CardPM
+Quote Post

spullen
RE: Threading
15 Apr, 2007 - 10:37 AM
Post #5

D.I.C Regular
Group Icon

Joined: 22 Mar, 2007
Posts: 330



Thanked: 1 times
Dream Kudos: 50
My Contributions
Is there any tutorials or resources that can help me make my own threading library?
User is offlineProfile CardPM
+Quote Post

NickDMax
RE: Threading
15 Apr, 2007 - 12:09 PM
Post #6

2B||!2B
Group Icon

Joined: 18 Feb, 2007
Posts: 2,858



Thanked: 49 times
Dream Kudos: 550
My Contributions
The old windows platform SDK had a lot of good information on it. I guess you could try to gleen info from the new .NET geared MSDN. (if you are using VC++2005 it would actually be a great source).
User is offlineProfile CardPM
+Quote Post

spullen
RE: Threading
15 Apr, 2007 - 05:03 PM
Post #7

D.I.C Regular
Group Icon

Joined: 22 Mar, 2007
Posts: 330



Thanked: 1 times
Dream Kudos: 50
My Contributions
woah, I didn't realize you could use .Net stuff in c++ adds a lot of functionality.
Here is the thing on threading http://msdn2.microsoft.com/en-us/library/s...ing.thread.aspx seems pretty straight forward using the .Net stuff, but I still feel the need to make my own threading library.
User is offlineProfile CardPM
+Quote Post

Mickey
RE: Threading
16 Apr, 2007 - 08:10 AM
Post #8

New D.I.C Head
*

Joined: 11 Apr, 2007
Posts: 7


My Contributions
you should be looking at the _beginthread/_beginthreadex and _endthread api functions.
http://msdn2.microsoft.com/en-us/library/k...dcb(vs.80).aspx

And here is a bit more info on why you should use those functions:

http://www.microsoft.com/msj/0799/Win32/Win320799.aspx

This post has been edited by Mickey: 16 Apr, 2007 - 08:14 AM
User is offlineProfile CardPM
+Quote Post

spullen
RE: Threading
16 Apr, 2007 - 03:25 PM
Post #9

D.I.C Regular
Group Icon

Joined: 22 Mar, 2007
Posts: 330



Thanked: 1 times
Dream Kudos: 50
My Contributions
thanks for the links.

I also found this http://www.codeproject.com/threads/Synchro...ThreadNoMfc.asp which seems to be a pretty good implementation of threading.
User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 12/1/08 10:18PM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month