Unity C# Job System 学习

https://docs.unity3d.com/2018.4/Documentation/Manual/JobSystem.html

 

C# Job System Overview

What is multithreading?

What is a job system?

The safety system in the C# Job System

NativeContainer

Creating jobs

Scheduling jobs

JobHandler and dependencies

ParallelFor jobs

ParallelForTransform jobs

C# Job System tips and troubleshooting

 

C# Job System Overview

 

What is multithreading?

Multithreading is a type of programming that takes advantage of a CPU's capability to process many threads at the same time across multiple cores. Instead of tasks or instructions executing one after another, they run simultaneously 

What is a job system?

A worker thread is commonly used to handle background tasks that the user should not have to wait for to continue using your application.   

  What is a job system?

A job system manages multithreaded code by creating jobs instead of threads

  What is a job?

A job is a small unit of work that does one specific task. A job receives parameters and operates on data, similar to how a method call behaves. Jobs can be self-contained, or they can depend on other jobs to complete before they can run. 

  What are job dependencies?

 

 

 

The safety system in the C# Job System

 

NativeContainer

 

Creating jobs

 

Scheduling jobs

 

JobHandler and dependencies

 

ParallelFor jobs

 

ParallelForTransform jobs

 

C# Job System tips and troubleshooting

 

posted on 2020-04-20 09:45  void87  阅读(525)  评论(0编辑  收藏  举报

导航