Threads and synchronization

Posted on 2003-10-23
Medium Priority
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?

Question by:jello32
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
LVL 40

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.
LVL 86

Expert Comment

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

What OS are you targetting?

Expert Comment

ID: 9611608


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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.


Author Comment

ID: 9611616
The os is windows.  How would I start threads?

Assisted Solution

burcarpat earned 160 total points
ID: 9611630
LVL 86

Accepted Solution

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")

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
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 how to clear a vector as well as how to detect empty vectors in C++.
Suggested Courses

752 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