From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102b75,28b0249f7691568e X-Google-Attributes: gid102b75,public X-Google-Thread: 1164f8,28b0249f7691568e X-Google-Attributes: gid1164f8,public From: albaugh@agames.com (Mike Albaugh) Subject: Re: Alpha in peril? First Canion, now Pfieffer (I do think so) Date: 1999/05/14 Message-ID: <7hhgoc$d6t$1@null.agames.com>#1/1 X-Deja-AN: 477850858 References: <371AD875.407C6B83@igs.net> <7hhcvu$sgn@web.nmti.com> Followup-To: comp.arch,comp.sys.dec X-Complaints-To: abuse@agames.com X-Trace: null.agames.com 926697036 13533 192.245.83.156 (14 May 1999 15:50:36 GMT) Organization: Atari Games Corporation NNTP-Posting-Date: 14 May 1999 15:50:36 GMT Newsgroups: comp.arch,comp.sys.dec Peter da Silva (peter@baileynm.com) wrote: : In article , : Bruce Hoult wrote: : >In article , mike@ducky.net (Mike Haertel) wrote: : >> You can implement fork() w/o an MMU by using bcopy() to : >> copy entire process images at context switch time, to the : >> address they need to be at. I.e. every time you context : >> switch to a process, you copy it to the address it was : >> originally forked from. : >Eeeekkkk!!! Talk about a lot of process context to swap! And people say : >that MacOS is bad, with a couple of KB of low memory to swap out on each : >task switch... : I believe one of the early UNIX ports to the first generation of the LSI-11 : did a swap to disk on each context swap. Earlier than the LSI-11, AFAIK. That was sort of the whole _point_ of fork(), IIRC. That is, if you can only hold approximately one process at a time in memory, so you're swapping anyway, then, when you create a new process, and have swapped out the old image, instead of swapping in some sort of "virgin image" just to handle sorting out what should be inheritted and what shouldn't, in some sort of standardized way, you just don't swap _anything_ in. You let the old image run for a (typically short) while, presuming it's going to exec() pretty soon. Voila, you don't need any special way of passing parameters to a "spawner". You don't even need a "spawner". ANd a child can inherit anything it wishes from a parent. There are those who feel that the resulting blur between that which was _intended_ to be inheritted and that which "just happened" was unfortunate. I have some sympathy for them, but I'm not gonna bring it up too forcefully, since the last time I did I was forcefully flamed by fork-wielding partisans... :-) BTW: can anybody cite the "invention" of fork()? I first saw it on the XDS-940 (Project Genie), so it pre-dates Unix, but I'm not claiming Genie invented it. Perhaps you can tell I'm more of a fan of the "spawn()" sort of process-creation, with a clearly defined set of inheritables. Places far fewer restrictions on the implementation (e.g. MMU-less systems or distributed systems. let alone _heterogenous_ distributed systems... :-) But it's not like I don't appreciate the elegance of "doing, by not doing", that fork() exemplifies. Mike | albaugh@agames.com, speaking only for myself