As C# includes classes like Thread
and Mutex
, the C++ Standard Library also provides support for multi-threading. Classes like std::thread
and std::mutex
are very similar, but there are larger differences when it comes to C#’s lock
, async
, and await
keywords. Read on to learn how to write multi-threaded C++!
Posts Tagged task
Two weeks ago we tested the performance of the async
and await
keywords plus the C# Task
system against Unity’s new C# jobs system. This tested the usual combination of async
and await
with the Task
system, but didn’t test the Task
system directly against Unity’s C# jobs system. Today we’ll test that and, in so doing, see how to use the Task
system without the async
and await
keywords.
Last week’s article tested the performance of the async
and await
keywords plus the C# Task
system against Unity’s new C# jobs system. This week we’ll go in depth with async
and await
to learn how they work, how they relate to the Task
system, and how we can customize them for our own uses.