From owner-freebsd-questions@FreeBSD.ORG Thu Jun 14 08:37:15 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D5AF716A41F for ; Thu, 14 Jun 2007 08:37:15 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id 55EFB13C45A for ; Thu, 14 Jun 2007 08:37:15 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from kobe.laptop (vader.bytemobile.ondsl.gr [83.235.244.135]) (authenticated bits=128) by igloo.linux.gr (8.13.8/8.13.8/Debian-3) with ESMTP id l5E8auTS010560 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 14 Jun 2007 11:37:03 +0300 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.1/8.14.1) with ESMTP id l5E8aatg003397; Thu, 14 Jun 2007 11:36:52 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.1/8.14.1/Submit) id l5E8aapC003396; Thu, 14 Jun 2007 11:36:36 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Thu, 14 Jun 2007 11:36:36 +0300 From: Giorgos Keramidas To: cadastrosonline@yahoo.com.br Message-ID: <20070614083635.GA3360@kobe.laptop> References: <306715.62215.qm@web57310.mail.re1.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <306715.62215.qm@web57310.mail.re1.yahoo.com> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-2.854, required 5, ALL_TRUSTED -1.80, AWL -0.31, BAYES_20 -0.74) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: freebsd-questions@freebsd.org Subject: Re: Memory mannagment X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jun 2007 08:37:15 -0000 On 2007-06-14 01:15, cadastrosonline cadastrosonline wrote: > First of all, > > "Each process has its own private address space. The address space is initially divided > into three logical segments: text, > data, and stack. " > > But if the address is just something like 343556 then how does it > really work? The memory is divided into segments is that what it > means? An answer to this is a very long introductory course in UNIX systems internals. In general, you can find a lot of detail about memory management and allocation in books like ``The Design and Implementation of the FreeBSD Operating System''[1] or even the classic book of Abraham Silberschatz called ``Operating System Concepts''[2]. [1] http://www.amazon.com/Design-Implementation-FreeBSD-Operating-System/dp/0201702452 [2] http://www.amazon.com/Operating-System-Concepts-Abraham-Silberschatz/dp/0471694665 > "The data segment contains the initialized and uninitialized data portions of a program" > > Is it talking about multithreading? I COULDNT FIND anything talking > about how freebsd deals with multithreading, just found out it does it > by man pthread. No, it's not talking about multi-threading. Please see [1] above for concepts like `process' and `thread' in FreeBSD. > Tell me anything else interesting to know about memory mannagment, does > it use any algorithm to substitute a page when out of pages in memory? This is also explained in [1] above :)