Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 beta 3/9/83; site callan.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxj!houxm!vax135!cornell!uw-beaver!tektronix!hplabs!sdcrdcf!trwrb!scgvaxd!wlbr!callan!tim From: tim@callan.UUCP (Tim Smith) Newsgroups: net.unix-wizards Subject: Re: process status from the keyboard (like ^T in tops20) Message-ID: <291@callan.UUCP> Date: Tue, 22-Jan-85 16:10:16 EST Article-I.D.: callan.291 Posted: Tue Jan 22 16:10:16 1985 Date-Received: Fri, 25-Jan-85 21:53:55 EST References: <615@wucs.UUCP> Reply-To: tim@callan.UUCP (Tim Smith) Distribution: net Organization: Callan Data Systems, Westlake Village, CA Lines: 18 Summary: Cithep has had this feature for years. ^T ( or whatever you have it set to ), tells you the amount of real, system, and user time since the last ^T, the text, data, and stack sizes, the state of the process ( running, sleeping, waiting for terminal I or O, waiting for buffers, etc ), and the number of page faults ( "hard" and "soft" ), and of course, what is running. There might be something else. Kernel changes are simple, since it is implemented as a signal. It is a user mode program that does all the work. I believe that the only hard part about writting the program is deciding WHICH process to show info about. Note that the process that waits for ^T spends most of it's time pause()ing, and so does not use many system resources. Also, since it only reads the namelist and only has to open /dev/kmem once, it gets very good response. -- Duty Now for the Future Tim Smith ihnp4!wlbr!callan!tim or ihnp4!cithep!tim