kill
kill — sends a signal to a process.
kill (pid, signo)
pidThe process id number.
signoThe signal number, normally one of the built-in signal values.
This process functions similarly to the kill shell
command. Signals and their descriptions can be found in signal.
Process 1:
Gamma>getpid();8299Gamma>
Process 2:
Gamma>kill(8299,9);tGamma>
Process 1:
Gamma> Killed
Process 3:
Gamma>getpid();9041Gamma>kill (9041,14);Alarm clock