Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


Search this Thread
Old 09-21-2013, 09:01 AM   #1
Registered: Oct 2005
Posts: 528

Rep: Reputation: 32
std::async vs std::thread

Hi, am new to this but am wondering what is the high level difference between these two.

Also, anyone know what's the status of supporting these with the compilers on Linux and Windows? Searching around the net returns a number of blogs from 2011 - 2012 indicating there has been bugs or issues with implementations.
Old 09-21-2013, 10:03 AM   #2
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,625

Rep: Reputation: 1260Reputation: 1260Reputation: 1260Reputation: 1260Reputation: 1260Reputation: 1260Reputation: 1260Reputation: 1260Reputation: 1260
An asynchronous activity is not necessarily driven by a thread. When you use this class, you're suggesting to the system that you do not strictly care whether a thread is used: you simply want something to happen "asynchronously."


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
printf vs std::cout and std::ofstream grob115 Programming 2 01-16-2013 11:49 AM
Perl: suppress std output and std error say_hi_ravi Programming 1 11-01-2012 06:22 AM
Template algorithm for std::vector and std::string CartmanYO Programming 4 09-08-2010 09:56 AM
what does the std:: do? RHLinuxGUY Programming 1 11-15-2005 01:01 PM
How to make a thread sleep or std::recv timeout? BrianK Programming 3 10-10-2003 02:35 AM

All times are GMT -5. The time now is 12:22 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration