3 ms·
If we’re engineering ourselves there’s a few problems we need to solve. What you’re talking about is saving the registers/state before switching thread. Anothe
by baby 6y ago
If we’re engineering ourselves there’s a few problems we need to solve. What you’re talking about is saving the registers/state before switching thread.
Another problem is figuring out what’s next to schedule. Visualizing your task as a non-ordered list doesn’t work well. What you need is to order your work with a priority queue.
Another problem is interrupts: what are the things that take you out of a task? For example, emails, notifications, etc.
Another problem is the noisy neighbor problem: you might get disrupted by other people’s performance, or what they’re working on, or your own lack of progress, etc. The solution of course was given by Feynman: disregard!