[TUHS] Control-T (was top)
ron at ronnatalie.com
Fri May 25 00:50:03 AEST 2018
Another related creeping featurism was the integration of the control-T feature that was prevalent in many of the DEC 10/20 OSs.
When Mike Muuss was doing some scheduling tweaks he decided that being able to list out all the processes on the terminal with a few parameters (he had the weighted load averages at the top of the list).
It became real handy for me when I set out to reverse engineer how the Csh used job control as well.
For those who aren’t old time kernel hacks, there are two structures associated with every process. The “proc” structure has essential things like uid/gid and memory sizes and priority. The proc structure always was resident making it ripe pickings for control-T. More detailed information including the stack of the process (and hence the command line arguments), were in the user structure. While the user structure of the currently running process was always resident (and on the PDP-11 at 140000, which meant you could use the display register to display the UID to figure out who the CPU hog was). This made it harder for the “ps”-like things to get. I finally relented and put a copy of the first few bytes of the arg list in the proc structure.
More information about the TUHS