Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Dec 2000 09:17:12 +0800
From:      "xuyifeng" <bsddiy@163.net>
To:        "Julian Elischer" <julian@elischer.org>, "Tony Finch" <dot@dotat.at>
Cc:        <arch@freebsd.org>
Subject:   Re: Thread-specific data and KSEs
Message-ID:  <002501c05b34$b1609de0$e001a8c0@xyf>
References:  <20001122133421.S18037@fw.wintelcom.net> <Pine.SUN.3.91.1001122180448.7920A-100000@pcnet1.pcnet.com> <20001130065503.E58294@hand.dotat.at> <3A2664AC.493B4101@elischer.org>

next in thread | previous in thread | raw e-mail | index | archive | help

but this limits total threads to less than 2000 if the process address space is 2G,
threads needn't 1M stack space in most case.

XuYifeng

----- Original Message ----- 
From: Julian Elischer <julian@elischer.org>
To: Tony Finch <dot@dotat.at>
Cc: <arch@freebsd.org>
Sent: Thursday, November 30, 2000 10:31 PM
Subject: Re: Thread-specific data and KSEs


> Tony Finch wrote:
> > 
> > Daniel Eischen <eischen@vigrid.com> wrote:
> > >On Wed, 22 Nov 2000, Alfred Perlstein wrote:
> > >>
> > >> Was there something wrong with the suggestion to put the local info
> > >> on the stack?  I just don't see it being discussed at all.
> > >
> > >Yes, I stated that it could not be used.  We want to provide a POSIX
> > >complaint API, and this dictates that applications be able to create
> > >stacks of their own size and choosing.  We can't rely on stacks being
> > >any particular size, or starting at any particular address.
> > 
> > Additionally, wouldn't you have to walk up the stack to find its base?
> > (which I guess would be a bit more expensive than dereferencing %gs)
> 
> No, you start each stack on some multiple of (say) 1MB
> and then you just or it with 0xfffff to find the top of the stack..
> (This is what one of the MACH threads packages used to do)
> 
> > 
> > Tony.
> > --
> > f.a.n.finch     dot@dotat.at     fanf@covalent.net     Chad for President!
> > 
> > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > with "unsubscribe freebsd-arch" in the body of the message
> 
> -- 
>       __--_|\  Julian Elischer
>      /       \ julian@elischer.org
>     (   OZ    ) World tour 2000
> ---> X_.---._/  presently in:  Budapest
>             v
> 
> 
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-arch" in the body of the message


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?002501c05b34$b1609de0$e001a8c0>