This is probably a question for Toady, but perhaps someone else knows too...
Do dwarves have a computation budget? As in, does DF ever skip calculating things if a dwarf is already making lots of calls to the CPU? Or, is the code designed so that dwarves rarely exceed a certain amount of per-dwarf processing power, because, for example, you can't have a dwarf fighting off goblins with an axe AND figuring out if and where to haul that bolt of cloth? (Complex pathfinding calls being one exception I know about that can't be avoided once the map requires it.)
If not, I think they should. It's even somewhat based in reality; humans, once a certain amount of thinking is being done, start simply ignoring low priority tasks.
I thought of this because I want to see reach added to DF combat, but that would require a fair amount of extra processing to be done when two units close on each other, as they'd have to step through each unit of reach, essentially breaking up the final tile into as many tiles as there are reach categories. (Modulo some optimizations.) Then I realized one could steal the processing by dropping other processes on that dwarf either as a soldier or during combat, and then I generalized it...why not do this heuristically on every dwarf?
Related; perhaps there are lots of things about coding that I don't know that would utterly change my thinking about this, not being particularly experienced myself. Please let me know, if so.
P.S. actually I'm going to contradict myself. There should be more CPU-efficient but path-inefficient path-finding algorithms that a dwarf could switch to if it detects that pathfinding calls are getting onerous. This is also realistic; actual dwarves wouldn't have clairvoyance and aren't likely to pick the fastest route over complicated geometries. I'm not especially suggesting Toady do this...just thinking about the theoretical boundaries. (New personality trait! "Can find his/her way around well...corresponds to using more CPU-intensive pathfinding, with better paths.
Perhaps sober dwarves could all find their way around less well...)