From owner-freebsd-questions@FreeBSD.ORG Thu Jun 14 11:15:33 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 C023016A468 for ; Thu, 14 Jun 2007 11:15:33 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by mx1.freebsd.org (Postfix) with ESMTP id 3155D13C448 for ; Thu, 14 Jun 2007 11:15:32 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: by ug-out-1314.google.com with SMTP id u2so682929uge for ; Thu, 14 Jun 2007 04:15:32 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=googlemail.com; s=beta; h=domainkey-signature:received:received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer; b=TL1VQQ2j2f54uAflBaVEC4JDYUxbybqDRa7Qtwbzp80iQCmkJSMkLixR7qNFbZo909ea2Rq89KH+Y5wDqWGq4qwbaXplS29yNC7qLKEVQ4k9xQwfVDd52uA4fGny7fjPOED43v30tWBhsPpN+Pgei92fctpTdmfGhL2ALoJ/Njs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=beta; h=received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer; b=JoQ1WF38yqveboyLfNe/3cwKy1r1PfduEptZRLFm3CSwRdUF5EYg5u5ess9+FeONaa80I+cVPu2WHclFGhOKaGQ3dAHN1iWVQdG1XgXVRpr55lBEPJL311DIakBA6GemJhK+Z2jnnLMJbDpAjvraikt+dfC41To/RVydoinQLs4= Received: by 10.82.186.5 with SMTP id j5mr3152779buf.1181819731307; Thu, 14 Jun 2007 04:15:31 -0700 (PDT) Received: from ?IPv6:::ffff:127.0.0.1? ( [217.206.187.79]) by mx.google.com with ESMTP id f7sm5076881nfh.2007.06.14.04.15.30 (version=SSLv3 cipher=RC4-MD5); Thu, 14 Jun 2007 04:15:30 -0700 (PDT) From: Tom Evans To: Giorgos Keramidas In-Reply-To: <20070614083635.GA3360@kobe.laptop> References: <306715.62215.qm@web57310.mail.re1.yahoo.com> <20070614083635.GA3360@kobe.laptop> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-R+JSUcgdUh5bSY6olt+l" Date: Thu, 14 Jun 2007 12:15:29 +0100 Message-Id: <1181819729.1212.21.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.10.2 FreeBSD GNOME Team Port Cc: freebsd-questions@freebsd.org, cadastrosonline@yahoo.com.br 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 11:15:33 -0000 --=-R+JSUcgdUh5bSY6olt+l Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Thu, 2007-06-14 at 11:36 +0300, Giorgos Keramidas wrote: > On 2007-06-14 01:15, cadastrosonline cadastrosonline wrote: > > First of all, > > > > "Each process has its own private address space. The address space is i= nitially 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? >=20 > 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]. >=20 > [1] http://www.amazon.com/Design-Implementation-FreeBSD-Operating-System/= dp/0201702452 > [2] http://www.amazon.com/Operating-System-Concepts-Abraham-Silberschatz/= dp/0471694665 >=20 > > "The data segment contains the initialized and uninitialized data porti= ons 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. >=20 > No, it's not talking about multi-threading. Please see [1] above for > concepts like `process' and `thread' in FreeBSD. >=20 > > 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? >=20 > This is also explained in [1] above :) I'd also suggest 'Operating Systems Design and Implementation' [1] by Andrew Tanenbaum (wrote MINIX, teaches OS design at a Dutch uni, lots and lots of OS research).=20 $108 seems a lot for a book tho (sure I didn't pay that much?!). [1] http://www.amazon.com/Operating-Systems-Implementation-Prentice-Software/dp= /0131429388 --=-R+JSUcgdUh5bSY6olt+l Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQBGcSNRlcRvFfyds/cRAlXIAKCuVSDDR7Z7owNjIyMncXDMrVpLZACcCadk xoJ8segCTwu+MHGkSmHg9rs= =Ua3u -----END PGP SIGNATURE----- --=-R+JSUcgdUh5bSY6olt+l--