Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
From: sp@mogul.osf.org (Simon Patience)
Subject: Re: Threads better than forks?
Date: 12 Oct 1993 18:53:09 GMT	[thread overview]
Message-ID: <29euel$t83@paperboy.osf.org> (raw)
In-Reply-To: 29ej1h$n33@hpuerca.atl.hp.com

In article <29ej1h$n33@hpuerca.atl.hp.com>, sailer@atl.hp.com (Lee Sailer) writes:
|> Another difference between threads (tasks) and processes that I'm not quite
|> sure about has to do with scheduling.  As I understand it, all a process's
|> tasks share that one process's timeslice.  On the other hand, forked
|> process's each get a timeslice of their own.

You are wrong, at least in OSF/1 and Mach. A thread is the schedulable entity
and not the task/process. Thus 5 processes would get as much time as 5 threads 
as they would be scheduled in the same way. There is a small difference in that 
switching between 2 threads in the same process/task would not have to change 
address spaces whereas switching between two processes would so 5 threads may 
get even more time than 5 processes due to lower system overhead.

Simon.

-- 
  Simon Patience				Phone: (617) 621-7376
  Open Software Foundation			FAX:   (617) 621-8696
  1 Cambridge Center				Email: sp@osf.org
  Cambridge, MA 02142				       uunet!osf!sp


  parent reply	other threads:[~1993-10-12 18:53 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-10-11 17:05 Threads better than forks? Thomas Georges
1993-10-11 18:25 ` Jon Mauney
1993-10-12  2:39   ` Thuan Q. Pham
1993-10-12 15:38     ` Lee Sailer
1993-10-12 18:04       ` zac
1993-10-12 18:53       ` Simon Patience [this message]
1993-10-14 15:37       ` Jari Tavi
1993-10-14 15:22     ` Steven Wayne Hudson
1993-10-14 18:57       ` Joshua Goldman
1993-10-15 17:39       ` Chris Fulmer
1993-10-14 15:23     ` FAQ request Steven Wayne Hudson
1993-10-13  9:11   ` Threads better than forks? Stuart John Cochran
1993-10-13 12:31     ` Simon Patience
1993-10-11 20:05 ` Brad Daniels
1993-10-12 19:19 ` Rich Salz
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox