From owner-freebsd-questions Wed Sep 13 21:22:24 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id VAA17861 for questions-outgoing; Wed, 13 Sep 1995 21:22:24 -0700 Received: from ref.tfs.com (ref.tfs.com [140.145.254.251]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id VAA17842 ; Wed, 13 Sep 1995 21:22:20 -0700 Received: (from julian@localhost) by ref.tfs.com (8.6.11/8.6.9) id VAA02219; Wed, 13 Sep 1995 21:20:56 -0700 From: Julian Elischer Message-Id: <199509140420.VAA02219@ref.tfs.com> Subject: Re: Threads,... To: archie@tribe.com (Archie Cobbs) Date: Wed, 13 Sep 1995 21:20:56 -0700 (PDT) Cc: rmillian@espuma.servtech.com, questions@freebsd.org, hackers@freebsd.org In-Reply-To: <199509140409.VAA20138@bubba.tribe.com> from "Archie Cobbs" at Sep 13, 95 09:08:56 pm X-Mailer: ELM [version 2.4 PL24] Content-Type: text Content-Length: 1143 Sender: questions-owner@freebsd.org Precedence: bulk This is the theory behinf 'rfork' which allows the parent to decide what resources will be shared with the child. > > > rmillian@espuma.servtech.com (rmillian) writes: > > > Is FreeBSD multithreaded? If not are there plans to make it multithreaded? > > What is someone were to try and port Java and HotJava to FreeBSD? (See > > http:\\java.sun.com) > > I had a thought the other day re this and was wondering if it would work... > > With SYSV memory sharing, you can share memory between processes. > A program image contains text regions and data regions. Now suppose > you had a way of creating a shared memory region just big enough to > hold your data image, and then mapping your data image into it. And > your heap, if possible, (so malloc()'d data could be shared). > > Voila, now you can fork() a new thread... > > I'm not familiar with how object files are linked (relocatable data > segments?) etc., but it *seems* like it would be easy... > > -Archie > _______________________________________________________________________________ > Archie L. Cobbs, archie@tribe.com * Tribe Computer Works http://www.tribe.com >