try c++11 concurrency