LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 09-21-2013, 10:01 AM   #1
grob115
Member
 
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, 11:03 AM   #2
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,423

Rep: Reputation: 1158Reputation: 1158Reputation: 1158Reputation: 1158Reputation: 1158Reputation: 1158Reputation: 1158Reputation: 1158Reputation: 1158
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."
 
  


Reply


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 12:49 PM
Perl: suppress std output and std error say_hi_ravi Programming 1 11-01-2012 07:22 AM
Template algorithm for std::vector and std::string CartmanYO Programming 4 09-08-2010 10:56 AM
what does the std:: do? RHLinuxGUY Programming 1 11-15-2005 02:01 PM
How to make a thread sleep or std::recv timeout? BrianK Programming 3 10-10-2003 03:35 AM


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

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