Suspending processes
Doug Gwyn
gwyn at brl-smoke.ARPA
Sun Jan 11 05:24:16 AEST 1987
In article <836 at A60.UUCP> lee at A60.UUCP (G. Lee) writes:
> Does UNIX provide a standard way to suspend a processes ( stop it
>from getting CPU time )?
There isn't any universal way of doing this, and on some UNIXes
there is no way at all. Around SVR2.1 or so, a "switch" character
was added for terminals, usually set to ^Z or ^Y, that operates in
conjunctions with the "shl" poor-man's process manager to control
processes more or less as you seem to wish. 4.1BSD and later include
a fancier "job control" mechanism that does similar things in
conjunction with a shell that understands this environment (C-shell,
BRL Bourne shell, or Korn shell). The System V scheme is cleaner but
doesn't provide any way for a process to notice that the terminal
display has been asynchronously messed-up by the "shl" operations,
which is sometimes quite a nuisance when your resumed screen-oriented
software doesn't have any way to request a screen repaint.
The best facility I've seen for this is the /proc mechanism of 8th
Edition UNIX. Unfortunately I haven't seen this adopted in any
generally-available version of UNX.
More information about the Comp.unix.questions
mailing list