*BSD News Article 16436


Return to BSD News archive

Newsgroups: comp.unix.bsd
Path: sserve!newshost.anu.edu.au!munnari.oz.au!uunet!pipex!warwick!zaphod.crihan.fr!univ-lyon1.fr!news.imag.fr!isis.imag.fr!amselem
From: amselem@dingoisis (Denis Amselem )
Subject: Cost of a fork()
Message-ID: <C7IyM5.2Lu@imag.fr>
Sender: amselem@dingo (Denis Amselem )
Nntp-Posting-Host: dingo
Organization: IMAG Institute, University of Grenoble, France
Date: Mon, 24 May 1993 09:34:53 GMT
Lines: 26

I am trying to find out what the 'cost' of a fork() is.
By 'cost', I mean cpu time. But there might be some other
important criteria that I am not aware of.
I am also wondering whether the end of the execution of
a process has some extra cost? : more precisely, is there
some overheard for the termination of a process between the last
executed statement of the process and the definite end of it?

The idea of these queries is to be able to determine whether
it is worth or not 'forking' if the child process is to have
a very short period of *effective* execution time (by effective I mean
execution of code without the initialisation and termination of
the child).

Could someone provide me with such info, or give me
some pointers to any research papers/ books related 
to that subject?
Thanks,

Denis A.

-- 
----------------------------------------------------------------------
Denis AMSELEM				Laboratoire ARTEMIS
amselem@imag.fr				Institut IMAG, BP 53X
phone: (33) 76 63 58 77 		F-38041 GRENOBLE Cedex, FRANCE