Everything about scheduling...

What's scheduling

In the context of NEET computers, scheduling is the process the mod uses to assign runtime to each computer!

Introduction

First for explained scheduling is a computers 'state', there are 4 possible states each corresponding to the color of the computers indicator light on the block model, 'black' - 'off', 'green' - 'on', 'blue' - 'paused', and 'red' - 'crashed'

when a computer block entity is ticked and in a 'on' state it will try to submit a ticket with the scheduler

The scheduler

The scheduler is a java program running on its own threads separate from the rest of the game, when a computer requests runtime from it looks for the least busy thread and assigns the ticket to the thread, and keeps log of all computers currently waiting for runtime

A computer requesting runtime that is still waiting for a previous request to complete will have its request denied, meaning if the threads cant keep up computers will skip ticks