Legacy Documentation: Version 2018.1 (Go to current version)
C# Job System
What is multithreading?
Other Versions

C# Job System Overview

How the C# Job System works

The Unity C# Job System allows users to write multithreaded code that interacts well with the rest of Unity and makes it easier to write correct code.

Writing multithreaded code can provide high-performance benefits. These include significant gains in frame rate and improved battery life for mobile devices.

An essential aspect of the C# Job System is that it integrates with what Unity uses internally (Unity’s native job system). User-written code and Unity share worker threads. This cooperation avoids creating more threads than CPU cores, which would cause contention for CPU resources.

For more information, watch the talk Unity at GDC - Job System & Entity Component System.


对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答