Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!caip!lll-crg!lll-lcc!well!ewhac From: ewhac@well.UUCP (Leo 'Bols Ewhac' Schwab) Newsgroups: net.micro.amiga Subject: Re: Has Anyone written/seen programs like these? Message-ID: <1366@well.UUCP> Date: Tue, 1-Jul-86 05:46:05 EDT Article-I.D.: well.1366 Posted: Tue Jul 1 05:46:05 1986 Date-Received: Wed, 2-Jul-86 05:13:56 EDT References: <8606262143.AA06402@pavepaws> Reply-To: ewhac@well.UUCP (Leo 'Bols Ewhac' Schwab) Organization: Whole Earth Lectronic Link, Sausalito CA Lines: 36 Keywords: DOS, resource management Summary: 20/20 hindsight *** REPLACE THIS LINE WITH ANOTHER ONE EXACTLY LIKE IT *** In article <8606262143.AA06402@pavepaws> dillon@PAVEPAWS.BERKELEY.EDU (Matt Dillon) writes: > >> First and most importantly, has anyone written a program that will >>kill a process *and* reclaim the memory that it was using. I have >>seen a ps type program and a program to set the priority level of a >>process but I have not seen a program to kill one. I was very >>disapointed that there was not one on the 1.2Beta release. > > Impossible. The operating system does not keep resource lists. >You can kill the process easily enough, but you cannot reclaim all of >its resources. This, then, brings up the next logical question: Why doesn't the DOS do resource tracking? How difficult would it be to put this in (very difficult probably (not actually difficult, just time-consuming))? Idea: Someone could cook up a library that replaces Exec/Intuition/ Graphics calls (or provides equivalents) that track your resources. By opening the library, you ask for resource management (the library keeps track of what you've opened by hanging stuff off your task structure or something). If you don't open the library, then you handle resource tracking yourself. I still say that the DOS should have done this. Interesting caveat: When the program exits or crashes, how can we get the library to close itself? Thoughts at quarter to three in the morning.... _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ Leo L. Schwab ihnp4!ptsfa!well!ewhac ..or.. "Work FOR? I don't work FOR well ---\ anybody! I'm just having fun." dual ----> !unicom!ewhac hplabs -/ ("AE-wack")