From owner-freebsd-hackers Thu Nov 16 2:37:15 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from distortion.dk (distortion.dk [195.249.147.156]) by hub.freebsd.org (Postfix) with ESMTP id A0CDA37B4C5 for ; Thu, 16 Nov 2000 02:37:10 -0800 (PST) Received: from petri2000 ([194.192.131.97]) by distortion.dk (8.9.3/8.9.1) with SMTP id LAA86711 for ; Thu, 16 Nov 2000 11:43:06 +0100 (CET) (envelope-from nicolai@petri.cc) Message-ID: <021501c04fb9$574f9030$6732a8c0@atomic.dk> From: "Nicolai Petri" To: Subject: Multithreaded tcp-server or non-blocking ? Date: Thu, 16 Nov 2000 11:38:14 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 ? And what's the pro's and con's for the 2 methods ??? --- Cheers, Nicolai Petri // *If you can't follow the standard, break it (MickeySoft)* To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message