(not sure where to post this...)
I had an idea there might be a TUI lib for typescript. A duckduckgo search came up with an article that described exactly what I wanted!
So of course I immediately searched for this fabled tui lib. A quick search didn't reveal anything, and npm can't seem to find it either! https://www.npmjs.com/search?q=Tui
Navigating directly to the npm package page reveals a 10 year old got repo with no actual code... (https://github.com/basarat/tui)
What the scuff is this world coming to?!
This seems to absolutely align with my experience of using LLMs
(Also accepting suggestions for typescript TUI libs that actually exist!)
In my experience, a Scheduler is something that schedules time on the CPU for processes (threads).
So 10 processes (threads) say "I need to do something":
2 of those threads are "ready to continue" because they were previously waiting on some Disk IO (and responsibly released thread control while data was fetched).
1 of the threads says "this is critical for GPU operations".
1 of those threads self declares it is elevated priority.
The scheduler decides which of those threads actually gets time on an available CPU core to be processed.