From owner-freebsd-current Tue Nov 3 13:12:56 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA10851 for freebsd-current-outgoing; Tue, 3 Nov 1998 13:12:56 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from post.mail.demon.net (post-12.mail.demon.net [194.217.242.41]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA10840 for ; Tue, 3 Nov 1998 13:12:48 -0800 (PST) (envelope-from james@westongold.com) Received: from [158.152.96.124] (helo=wgp01.wgold.demon.co.uk) by post.mail.demon.net with esmtp (Exim 2.05demon1 #1) id 0zankS-0000Cn-00; Tue, 3 Nov 1998 21:12:21 +0000 Received: by WGP01 with Internet Mail Service (5.5.1960.3) id ; Mon, 2 Nov 1998 20:01:59 -0000 Message-ID: <32BABEF63EAED111B2C5204C4F4F50201804@WGP01> From: James Mansion To: Peter Wemm , Daniel Eischen Cc: lists@tar.com, current@FreeBSD.ORG, jb@cimlogic.com.au Subject: RE: Kernel threading (was Re: Thread Scheduler bug) Date: Mon, 2 Nov 1998 20:01:50 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.1960.3) Content-Type: text/plain Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > From: Peter Wemm [mailto:peter@netplex.com.au] > Sent: Sunday, November 01, 1998 3:30 PM > ... > - a "process" (struct proc) would have one or more threads, > all using the > same address space, pid, signals, etc. > ... I'd like to suggest that threads (at least kernel threads) should share an address space EXCEPT for a page (or maybe more than one) that will have a common address in each thread. This is how OS/2 (at least) handles thread specific data, and so far as I can tell it is potentially much cleaner for TSD, including errno. Any user-level multiplexing would need to save/restore this data on task switch of course and a kernel-assist that changes the memory map might be faster (or might not, dunno). Can I ask (plead, really) for any effort in this area to consider the support for inter-process synchronisation as well as intra-process? James To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message