Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site ucbvax.UUCP Path: utzoo!linus!decvax!tektronix!ucbcad!ucbvax!root From: root@ucbvax.UUCP Newsgroups: fa.info-vax Subject: FInding idle time of a terminal Message-ID: <73@ucbvax.UUCP> Date: Sat, 8-Oct-83 04:32:24 EDT Article-I.D.: ucbvax.73 Posted: Sat Oct 8 04:32:24 1983 Date-Received: Thu, 13-Oct-83 05:15:43 EDT Sender: root@ucbvax.UUCP Organization: U. C. Berkeley Computer Science Lines: 10 From GEOFF5@SRI-CSL Sat Oct 8 01:31:46 1983 Sorry, there isn't any better way to do this. Hop into kernel mode, lock the I/O databases mutex for read, subtract UCB$L_DUETIM from EXE$GL_ABSTIM, unlock the mutex, and drop IPL. Note that you cannot get the idle time for an RT--you'll find REMACP's PID there (UCB$L_DUETIM is shared with UCB$L_CPID, RTs really should put the time there since the PID is in the AQb anyway). -=EPS=- ------