Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 63043
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T18:34:15+00:00 2026-05-10T18:34:15+00:00

I keep on hearing about concurrent programing every where. Can you guys throw some

  • 0

I keep on hearing about concurrent programing every where. Can you guys throw some light on what it’s and how c++ new standards facilitate doing the same?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T18:34:15+00:00Added an answer on May 10, 2026 at 6:34 pm

    Concurrency is about your code doing multiple things at the same time. This is typically done with explicit ‘threads’, but there are other possibilities. For example, if you use OpenMP directives in your code then a compiler that supports OpenMP will automatically generate threads for you.

    Thread is short for ‘thread of execution’. In a single-threaded C++ program, execution starts at main(), and then proceeds in a sequential fashion. In a multi-threaded program, the first thread starts at main, but additional threads may be started by the application which start at a user-specified function. These then run concurrently, or in parallel with the original thread.

    In C++0x threads are started using the std::thread class:

    void my_function() {     // do stuff } std::thread my_thread(my_function); // run my_function in its own thread 

    The new C++0x standard also supports:

    • atomic values and operations with the std::atomic<> class template,
    • mutexes for data protection (std::mutex, std::recursive_mutex, etc.)
    • lock classes for ease of managing lock lifetime (std::lock_guard<>, std::unique_lock<>)
    • std::lock and std::try_lock functions to manage acquiring multiple locks at the same time without risking deadlock
    • condition variables to ease waiting for an event (std::condition_variable, std::condition_variable_any)
    • futures, promises and packaged tasks to simplify passing data between threads, and waiting for a value to be ready. This addresses the classic ‘how do I return a value from a thread’ question.
    • thread-safe initialization of local static objects
    • the thread_local keyword to declare thread-local data

    I gave a more detailed overview of the new C++0x thread library in my article on devx.com: Simpler Multithreading in C++0x

    I write about multithreading and concurrency in C++ on my blog. I’m also writing a book on the topic: C++ Concurrency in Action.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 203k
  • Answers 203k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer jQuery: $("div[id]").filter(function() { return !(/^box:content:\d+:text$/.test(this.id)); }).size(); Pure JavaScript: var elems… May 12, 2026 at 8:35 pm
  • Editorial Team
    Editorial Team added an answer If the values of the final variables from class ClassA… May 12, 2026 at 8:35 pm
  • Editorial Team
    Editorial Team added an answer JUnit supports a child element <jvmarg ...> which should do… May 12, 2026 at 8:35 pm

Related Questions

I've been using $.each to do iterations for a while now, but I keep
What is this SWX data format that I keep hearing about? The Wikipedia article
I have experience in client-server application development in C/C++ on Windows platform. I would
I use full blown graphical IDEs such as Eclipse CDT (Linux) and Visual Studio

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.