Home / MCQ Bank / Computer
Computer Multi Threading In C Plus Plus Difficulty: Medium

What is the difference between std::async and std::thread in C++ multi-threading?

Select the correct option to test your answer:

More Computer Questions

What is the role of the @ symbol in Razor syntax used in ASP.NET MVC views? How is the parent node index computed in a zero-based indexed binary heap array? Which of the guarantee is provided by Zookeeper? What will be the output of the following Java program? class newthread extends Thread { Thread t; String name; newthread(String threadname) { name = threadname; t = new Thread(this,name); t.start(); } public void run() { } } class multithreaded_programing { public static void main(String args[]) { newthread obj1 = new newthread("one"); newthread obj2 = new newthread("two"); try { Thread.sleep(1000); System.out.print(obj1.t.isAlive()); } catch(InterruptedException e) { System.out.print("Main thread interrupted"); } } } Which of the following code snippet will create a vector with NAs in it?