thread
An independent path of execution running alongside others in the same program.
A thread shares its process's memory with other threads but has its own stack; std::jthread (C++20) starts one and joins it automatically in its destructor.
An independent path of execution running alongside others in the same program.
A thread shares its process's memory with other threads but has its own stack; std::jthread (C++20) starts one and joins it automatically in its destructor.