Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 1.14 KB

File metadata and controls

18 lines (12 loc) · 1.14 KB

Main thread

General computing term.

Geeks for Geeks: "When a ...program starts up, one thread begins running immediately. This is usually called the main thread of our program, because it is the one that is executed when our program begins.

Properties:

  • It is the thread from which other “child” threads will be spawned.
  • Often, it must be the last thread to finish execution because it performs various shutdown actions."

Many programming languages have a Main method that is the starting point of an application. The main thread will find this method and invoke it. Your program will run on the main thread unless you create additional threads yourself. For more information, see Stackoverflow.

Note: In ECS we aim to remove as much code as possible out of the main thread and into jobs.

See also: multithreading and worker threads.

Back to Capsicum reference