answersLogoWhite

0

Use std::packaged_task (preferably) or std::thread to start a new thread. Use std::future (preferred), std::mutex or std::atomic to share information between threads.

User Avatar

Wiki User

10y ago

What else can I help you with?

Related Questions

How do you write a program in C plus plus plus plus How do you write a program in C to swap two variables without using the third oneo swap two variables without using the third one?

To swap two variables without using a third variable, use exclusive or manipulation... a ^= b; b ^= a; a ^= b;


How do you write a C plus plus program that displays a pyramid of Xes on the screen using a for loop?

printf ("x")


How to write a code for finding sum of left diagonals elements in an array using c plus plus?

truzi i Ghal


How do you write 100000 plus 100000 plus 1000000 plus 10 plus 1 plus 10000 plus 100000 plus 100 plus 10000 plus 1000 in standard form?

Using a pen or a keyboard


How do you write the number 38 in expanded form using a plus sign?

30+8


What are the home application of c plus plus programming language?

C++ is useful when you want to write a program which you can use for your home use. For instance, you have a lot of different files. You can use C++ to sort them out using file extensions. Or you can write a program which will keep track of programs and music you download and so on.


How do you write an equivalent expression for 4x plus 4y plus 4z using the distributive property?

It is: 4(x+y+z)


How can write the name in c plus plus language without using cout statement?

I believe, you can use C-function - printf().


Would you Write c plus plus program using array for Fibonacci number?

You can write a C++ fib pro using arrays but the problem is the prog becomes very complicated since u need to pass the next adding value in an array.....


Can you write C plus plus apps for both iphone and android?

The iPhone and Android phones both use their own languages for programming applications: the iPhone uses Objective - C, where Android uses Java.


Can you write I plus plus plus?

I+++?


How do you write 4000 plus 600 plus 4?

How do you write 100,000 plus 20,000 plus 1,000 plus 900 plus 30 plus 9?