*BSD News Article 56449


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nntp.coast.net!news00.sunet.se!sunic!mn6.swip.net!seunet!news2.swip.net!nike.volvo.se!cyklop.volvo.se!peter
From: peter@cyklop.volvo.se (peter hakanson)
Newsgroups: comp.unix.bsd.freebsd.misc,comp.unix.advocacy
Subject: Re: Win32 CreateThread() vs Unix fork()
Followup-To: comp.unix.bsd.freebsd.misc,comp.unix.advocacy
Date: 9 Dec 1995 13:50:59 GMT
Organization: Volvo Corp.
Lines: 42
Message-ID: <4ac483$9nn@nike.volvo.se>
References: <4ab85f$idq@news.voicenet.com>
NNTP-Posting-Host: cyklop.volvo.se
X-Newsreader: TIN [version 1.2 PL2]
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:10108 comp.unix.advocacy:11967

A fork() takes app 3ms on my intel / BSDI system.
Why should i avoid it ? 

And why should this be considered ineffecient ??

How long time does a  CreateThread() takes ? Please 
give us a number on this.


900RR (900RR) wrote:

: Win32's CreateThread() is an extremely fast and efficient way of
: implementing multi-threaded, multi-user server applications (like Web
: servers). Threads are then run on individual processors in SMP boards,
: further boosting throughput.

: By contrast, Unix uses fork() to start an entire new process to
: service client requests. MP unixes could then run these whole
: processes on different CPU's.

: In any case, does anyone know how much more efficient a server
: application could run under an NT system than the same app, same
: hardware on something like FreeBSD or Linux? 

: Do veteran Unix programmers avoid fork() like the plague?

: Thanks

: CBR










--
--
Peter Hakanson  VolvoData Dep 2580 phone +46 31 66 74 27