marking normal sleep identifiers as such.

Dag-Erling Smorgrav des at ofug.org
Thu Jun 19 01:19:34 PDT 2003


Garance A Drosihn <drosih at rpi.edu> writes:
> Long ago and in an operating-system far away (and which is not
> running anywhere now), we had a similar problem.  We ended up
> adding a mechanism here the sleeper could specify a character
> string which would show up in our equivalent of 'ps'.  This
> was implemented by having one hardware register which held the
> address of the string to display.
>
> Perhaps something similar could be done in freebsd.

You mean like this?

des at meali ~% ps -opid,mwchan,command
  PID MWCHAN COMMAND
 7761 pause  -zsh (zsh)
16447 select ssh mikrobe
79090 pause  -zsh (zsh)
41402 select ssh flood.ping.uio.no
41403 select ssh flood.ping.uio.no
80739 pause  -zsh (zsh)
 7801 ttyin  -zsh (zsh)
41672 select /usr/local/bin/emacs -geometry 90x56-0+0
44723 ttyin  -zsh (zsh)
92780 ttyin  -zsh (zsh)
 2316 select xscreensaver
 3767 ttyin  -zsh (zsh)
 2711 ttyin  -zsh (zsh)
15511 ttyin  -zsh (zsh)
19014 pause  -zsh (zsh)
19033 -      ps -opid,mwchan,command

DES
-- 
Dag-Erling Smorgrav - des at ofug.org


More information about the freebsd-arch mailing list