Which header file must you include in your C++ program to use std::thread for creating new threads?
Given the following code snippet, what is the correct way to start a new thread that executes the function named 'task'? Example: ______;
Which C++ feature is commonly used to prevent multiple threads from accessing shared data at the same time, ensuring safe access?
What must you call on a std::thread object called 't' to wait for the thread to finish before continuing execution?
What happens if you call the detach() member function on a std::thread?