From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 4 00:05:59 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C57E916A41C for ; Sat, 4 Jun 2005 00:05:59 +0000 (GMT) (envelope-from joerg@britannica.bec.de) Received: from hydra.bec.de (www.ostsee-abc.de [62.206.222.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 75F5143D1F for ; Sat, 4 Jun 2005 00:05:59 +0000 (GMT) (envelope-from joerg@britannica.bec.de) Received: from britannica.bec.de (unknown [139.30.252.72]) by hydra.bec.de (Postfix) with ESMTP id 428DC35707 for ; Sat, 4 Jun 2005 02:05:54 +0200 (CEST) Received: by britannica.bec.de (Postfix, from userid 1001) id 355607D19; Sat, 4 Jun 2005 02:05:44 +0200 (CEST) Date: Sat, 4 Jun 2005 02:05:44 +0200 From: Joerg Sonnenberger To: freebsd-hackers@freebsd.org Message-ID: <20050604000544.GA31318@britannica.bec.de> Mail-Followup-To: freebsd-hackers@freebsd.org References: <3727392705060316555071c4ad@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3727392705060316555071c4ad@mail.gmail.com> User-Agent: Mutt/1.5.9i Subject: Re: Fork mystries.... X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Jun 2005 00:05:59 -0000 On Fri, Jun 03, 2005 at 07:55:29PM -0400, Aziz Kezzou wrote: > It's probably not the right mailing list to ask but I am really > surprised about global variable sharing in a multithreaded C > application. If I remember well my multithreading course global > variables are shared between threads, right ? fork() creates new processes, not new threads. Check pthread_create for the latter. Joerg