Date: Thu, 16 Nov 2000 12:32:48 +0000 From: Geoff Buckingham <geoffb@chuggalug.clues.com> To: Nicolai Petri <nicolai@petri.cc> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Multithreaded tcp-server or non-blocking ? Message-ID: <20001116123248.B92673@chuggalug.clues.com> In-Reply-To: <021501c04fb9$574f9030$6732a8c0@atomic.dk>; from Nicolai Petri on Thu, Nov 16, 2000 at 11:38:14AM %2B0100 References: <021501c04fb9$574f9030$6732a8c0@atomic.dk>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Nov 16, 2000 at 11:38:14AM +0100, Nicolai Petri wrote: > What's the best approach for a simple web-server(never more the 10 clients) > ? Is it using pthread and a thread per connection . Or to make a > non-blocking single thread server. Can people show me some simple examples > of the 2 techniques ? > Depending on exactly what you are trying to achieve you may want to take a look at thttpd, if you have not allready seen it. It is select based though: http://www.acme.com/software/thttpd/notes.html#select -- GeoffB To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001116123248.B92673>