From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_00,INVALID_MSGID, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a1c219342feb1c77 X-Google-Attributes: gid103376,public From: Ted Dennison Subject: Re: ADA client/server Date: 2000/08/21 Message-ID: <8ns0vq$5pj$1@nnrp1.deja.com>#1/1 X-Deja-AN: 660834136 References: <399ec91e@usenet.per.paradox.net.au> <8nre3m$e0d$1@nnrp1.deja.com> <8nrrpd$aik1@news.cis.okstate.edu> X-Http-Proxy: 1.0 x59.deja.com:80 (Squid/1.1.22) for client 204.48.27.130 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Mon Aug 21 19:47:14 2000 GMT X-MyDeja-Info: XMYDJUIDtedennison Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.7 [en] (WinNT; I) Date: 2000-08-21T00:00:00+00:00 List-Id: In article <8nrrpd$aik1@news.cis.okstate.edu>, dstarner98@aasaa.ofe.org wrote: > On Mon, 21 Aug 2000 14:25:15 GMT, Ted Dennison wrote: > >I often wonder what kind of drugs the folks at AT&T were on when they > >thought up "fork" and "exec" as good ways to do multi-tasking. Some > Can you elaborate? I'm not very familar with multitasking, but the > little I've read about it puts heavy weight (fork) and light weight > (thread) processes as complementary tools, each having its own use. ...spoken like someone who's never accidentally set off a fork-bomb on a multiuser machine. :-) Sure, fork and exec have their uses. They are essential in Unix for creating processes (also termed "heavyweight threads" once lightweight threads were introduced to Unixes much later). But that's only because Unix was set up that way. Why not just have an OS call to create a process (like is typically done with lightweight threads)? Its rarely useful to have a program that can replicate copies of itself, and doing it without errors is difficult (particularly when there are opened files and such). It would take some real thought to come up with a method of creating processes which is more mind-boggling and error-prone. Of course the folks working on multi-threaded INTERCAL probably succeeded with their multiple CAME FROM facility. But remember that INTERCAL has had the worlds most twisted minds working on the problem for years. :-) -- T.E.D. http://www.telepath.com/~dennison/Ted/TED.html Sent via Deja.com http://www.deja.com/ Before you buy.