Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Threads and synchronization

Posted on 2003-10-23
6
Medium Priority
?
427 Views
Last Modified: 2010-04-01
Is there a way to start individual threads in C++? What about synchronization? Are there any equivalents to java threads and synchronized procedures?  If so, what are they called and what are the equivalents?

Thanks
0
Comment
Question by:jello32
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 41

Expert Comment

by:Kyle Abrahams
ID: 9611563
yes you can start threads in C++, what OS you looking to do it in.  As for synchronized, they may have some, but you can always write your own.
0
 
LVL 86

Expert Comment

by:jkr
ID: 9611585
>>Is there a way to start individual threads in C++?

What OS are you targetting?
0
 
LVL 7

Expert Comment

by:burcarpat
ID: 9611608
see,

    http://www.boost.org/libs/thread/doc/index.html

for a cross-platform ( i.e. os independent ) solution

[ about boost.org :: boost.org is an organization supported by many c++ standards committee members and provides 100% free, peer-reviewed, cross-platform libraries.  many of the boost libraries, such as their smart pointer library, are already in the drafts of the next revision of the c++ standard ]

-- ba
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

Author Comment

by:jello32
ID: 9611616
The os is windows.  How would I start threads?
0
 
LVL 7

Assisted Solution

by:burcarpat
burcarpat earned 160 total points
ID: 9611630
0
 
LVL 86

Accepted Solution

by:
jkr earned 240 total points
ID: 9611637
>>The os is windows.

Check out http://msdn.microsoft.com/library/en-us/dndllpro/html/msdn_threads.asp ("Multithreading for Rookies")
0

Featured Post

Tech or Treat! - Giveaway

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question