Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Jul 1999 11:37:20 -0700
From:      "David Schwartz" <davids@webmaster.com>
To:        "Alfred Perlstein" <bright@rush.net>
Cc:        "Terry Lambert" <tlambert@primenet.com>, <Doug@gorean.org>, <scrappy@hub.org>, <beyssac@enst.fr>, <chat@FreeBSD.ORG>
Subject:   RE: Known MMAP() race conditions ... ?
Message-ID:  <000801becef1$125568a0$021d85d1@youwant.to>
In-Reply-To: <Pine.BSF.3.96.990715042605.14320S-100000@cygnus.rush.net>

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

> > 	On FreeBSD, I'm basically screwed. I'd have to write me own resolver
> > library to do the job. Licensing problems prevent me from using
> pretty much
> > every nice resolver library out there.
>
> You seem to be quite knowledgeable, a BSD'd re-entrant gethostbyname
> would proabably be welcome in the repository.
>
> -Alfred

	Well, you're giving too much credibility to my example. My point was not
that this specific problem needs to be solved. My point was more that there
are legitimate cases where you need lots of 'real' threads. You might solve
some of them, but there will always be more.

	I'm responding to the claim made that no such cases exist. I honestly can't
imagine how anyone could make that claim except out of lack of experience
with large real-world applications.

	The question really started as "why would anyone ever not want to use
FreeBSD?". I think the slant has, fortunately, been more like "if there's
something really broken/missing we need to know" rather than "FreeBSD is so
great, how could anyone ever choose another OS". Which is good.

	And I think one of the answers is that sometimes you really do need kernel
threads, unless you want to do an incredible amount of work to avoid them.
Now, you can take my example and say, "let's do all the work to avoid it",
but another one will pop up.

	Btw, FWIW, Linux doesn't handle 400 kernel threads all calling
'gethostbyname' well either. The case is the same with 'gethostbyname_r'.
Solaris doesn't either. NT has no problem.

	DS



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-chat" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000801becef1$125568a0$021d85d1>