C++11: std::future and std::async

C++11 introduces support for asynchronous calls in a very easy way. An asynchronous call is a method invocation that will be executed in a separate thread (or core or processor); so, the caller of the method does not wait for the result of the execution and continue doing what is next; in this way, the… Continue reading C++11: std::future and std::async

Advertisements

C++11: std::thread

The standard library that ships with the new C++11 contains a set of classes to use threads. Before this, we needed to use the OS specific thread facilities each OS provides making our programs hard to port to other platforms. Anyway, as today (November 16th, 2012), I tried threads using g++ 4.7 in Linux, Windows… Continue reading C++11: std::thread