From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 22691 invoked from network); 3 Aug 2021 07:20:04 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 3 Aug 2021 07:20:04 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id 791959CA9E; Tue, 3 Aug 2021 17:20:01 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 7C2B69CA63; Tue, 3 Aug 2021 17:19:30 +1000 (AEST) Received: by minnie.tuhs.org (Postfix, from userid 112) id 15B409CA63; Tue, 3 Aug 2021 17:19:26 +1000 (AEST) Received: from freefriends.org (freefriends.org [96.88.95.60]) by minnie.tuhs.org (Postfix) with ESMTPS id C5CA09CA60 for ; Tue, 3 Aug 2021 17:19:24 +1000 (AEST) X-Envelope-From: arnold@skeeve.com Received: from freefriends.org (freefriends.org [96.88.95.60]) by freefriends.org (8.14.7/8.14.7) with ESMTP id 1737JJQV019870 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 3 Aug 2021 01:19:20 -0600 Received: (from arnold@localhost) by freefriends.org (8.14.7/8.14.7/Submit) id 1737JJRc019869; Tue, 3 Aug 2021 01:19:19 -0600 From: arnold@skeeve.com Message-Id: <202108030719.1737JJRc019869@freefriends.org> X-Authentication-Warning: frenzy.freefriends.org: arnold set sender to arnold@skeeve.com using -f Date: Tue, 03 Aug 2021 01:19:19 -0600 To: tytso@mit.edu, douglas.mcilroy@dartmouth.edu References: In-Reply-To: User-Agent: Heirloom mailx 12.5 7/5/10 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [TUHS] Systematic approach to command-line interfaces X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: tuhs@tuhs.org Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" "Theodore Ts'o" wrote: > It's certainly clear that some kind of primitive is needed to create > new threads. An open question is whether if there exists some kind of > "new thread" primitve plus either spawn(2) or some kind of "create a > child process and then then frob like crazy using 'echo XXX > > /proc//'" whether there still is a need for a > fork(2) system call. I haven't caught up yet in this thread. Apologies if this has been discussed already. The Plan 9 folks blazed this trail over 30 years ago with rfork, where you specify what bits you wish to duplicate. I don't remember details anymore, but I think it was pretty elegant. IIRC Around that time Rob Pike said "Threads are the lack of an idea", meaning, if you think you need threads, you haven't thought about the problem hard enough. (Apologies to Rob if I am misremembering and/or misrepresenting.) Arnold