Job extensions
The Unity C# job system lets you run code on multiple threads. The system provides scheduling, parallel processing, and multi-threaded safety. The job system is a core Unity module that provides the general purpose interfaces and classes to create and run jobs, whether or not you're using the Entities package.
These interfaces include:
IJob
: Create a job that runs on any thread or core, which the job system scheduler determines.IJobParallelFor
: Create a job that can run on multiple threads in parallel, to process the elements of aNativeContainer
.IJobExtensions
: Provides extension methods to runIJob
jobs.IJobParallelForExtensions
: Provides extension methods to runIJobParallelFor
jobs.JobHandle
: A handle to access a scheduled job. You can also useJobHandle
instances to specify dependencies between jobs.
For an overview of the jobs system see the Job system documentation in the Unity User Manual.
The Collections package extends the job system to support ECS. It contains: