Updated Threading (markdown)
parent
1c20c93513
commit
0e525fd04f
@ -1,6 +1,6 @@
|
||||
# Reactor PLC and RTU Pseudo-Threading
|
||||
|
||||
The PLC and RTUs utilize co-routines to act as a multi-threading system. There is one "main" co-routine on each of those devices that is responsible for handling the OS event queue, and then auxiliary co-routines for handling various tasks. This allows the auxiliary co-routines to run commands that would consume the event queue, namely Mekanism API calls. Bringing those functions out of the main co-routine means that it will always get all the incoming events, rather than some of them being consumed by Mekanism functions waiting for `task_complete` events.
|
||||
The PLC and RTUs utilize co-routines to act as a multi-threading system. There is one "main" co-routine on each of those devices that is responsible for handling the OS event queue, and then auxiliary co-routines for handling various tasks. This allows the auxiliary co-routines to run commands that would consume the event queue, namely Mekanism API calls. Bringing those functions out of the main co-routine means that it will always catch all the incoming events, rather than some of them being consumed by Mekanism functions waiting for `task_complete` events.
|
||||
|
||||
## Reactor PLC
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user