Date: Sun, 6 Jan 2002 02:45:13 -0800 (PST) From: Julian Elischer <julian@elischer.org> To: Terry Lambert <tlambert2@mindspring.com> Cc: Robert Watson <rwatson@freebsd.org>, Alfred Perlstein <bright@mu.org>, arch@freebsd.org Subject: Re: freeing thread structures. Message-ID: <Pine.BSF.4.21.0201060244220.35785-100000@InterJet.elischer.org> In-Reply-To: <3C3819C6.C74B8DDD@mindspring.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 6 Jan 2002, Terry Lambert wrote: > Robert Watson wrote: > > I used to think that idea was cool, and now I just think it's evil. The > > reason to have per-thread credentials in kernel is to reduce the > > requirement for locking and to allow consistent use of credentials while > > in kernel. > > As Julian notes, having per thread credentials means locking > in thread_exit(), when it would not otherwise be necessary. NOT having it means needing locking at every access.. take your pick.. I prefer having a reference per thread. > > [ ... other argument about the evils of threads with different > credentials in the same process ... ] > > I agree: it's evil. > > So the question becomes: can we get rid of the locking in the > thread_exit() function if we didn't have per thread credentials? > > -- Terry > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-arch" in the body of the message > 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?Pine.BSF.4.21.0201060244220.35785-100000>