Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Aug 1996 12:21:27 +0530
From:      A JOSEPH KOSHY <koshy@india.hp.com>
To:        freebsd-hackers@freebsd.org
Subject:   FreeBSD vs. NT Stability
Message-ID:  <199608120651.AA091782688@fakir.india.hp.com>

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

Sometime back there was a posting comparing the behaviour of FreeBSD and
NT wrt a test program that created lots of processes and stressed the OS.
(I've unfortunately lost the original mails).

It struck me that the NT version of the program was using `CreateThread()' 
while the Unix (FreeBSD) version was using `fork()'.

Now I don't know much about NT internals, but it seems to me that the NT 
approach wouldn't lead to as many process context switches since the threads 
would be sharing the same address space.  Therefore the load on the VM system
would be no different from having 1 process.

The poster reported a slowdown on NT with many threads but no crashes, which
seems logical since multiple threads would consume CPU time, and not placing
a load on the VM would mean it wouldn't crash :-).

So my question is: how does NT behave when it has to schedule between a 
large number of processes each with its own process context, VM, page tables 
etc?  Conversely how does the unix program behave when linked with -lpthreads
and with `fork()' replaced with `pthread_create()'?

Koshy
<koshy@india.hp.com>		My personal opinions only.



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