Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Nov 1996 13:19:10 -0600 (CST)
From:      Joe Greco <jgreco@brasil.moneng.mei.com>
To:        proff@suburbia.net (Julian Assange)
Cc:        hackers@freebsd.org
Subject:   Re: Programming technique for non-forking servers?
Message-ID:  <199611141919.NAA25758@brasil.moneng.mei.com>
In-Reply-To: <199611132227.JAA16234@suburbia.net> from "Julian Assange" at Nov 14, 96 09:27:56 am

next in thread | previous in thread | raw e-mail | index | archive | help
> > In the case of a "complex" server, i.e. something like an Xserver or
> > MUD, but probably not a Web server, you probably need to use state machine 
> > concepts.  This is not "difficult", the only real problem is mastering 
> > the concept of state machines.
> 
> The problem with user-level state machines or multi-threading is that it
> doesn't take advantage of multiple cpu's. Kernel level support for threading
> may address this.

Since most FreeBSD machines are not yet SMP, the advantage of multiple 
processors is probably not an issue, so I would most likely not consider 
threads on a FreeBSD box...

Kernel level support for threading (or threads in general, for that matter)
may not be particularly portable in any case.

I guess I would not consider this viable unless someone told me up front
that there was a single platform that was being targeted, and there was
a clear advantage to the use of threads in the given context, and the
thread support on the platform in question was known to be good.

But Andrew only asked for some general theory on the subject.  :-)

... JG



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199611141919.NAA25758>