From: Dalibor Sramek Date: 2003-01-06T15:44:11+09:00 Subject: Re: What it more efficient fork or thread ? On Mon, Jan 06, 2003 at 03:30:25PM +0900, Jonas Hoffmann wrote: > I will write a small TCPServersystem and my question is, what is more > efficient for that, always start a Childprocess if there is a new connenction > request or should i only start a new thread . And what is easier to handle ? For a small server the threaded model is IMO both more eficient and easier to handle. The skeleton for the threaded TCP server is just a few lines of Ruby code. In general - it depends. For example you can not run different threads on different CPUs which is possible with different processes. Regards, Dalibor Sramek -- Dalibor Sramek http://www.insula.cz/dali | In the eyes of cats, dalibor.sramek@insula.cz | all things belong to cats.