Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
From: jpt@rixrax.fno.dec.com (Jari Tavi)
Subject: Re: Threads better than forks?
Date: Thu, 14 Oct 1993 15:37:15 GMT	[thread overview]
Message-ID: <1993Oct14.153715.10700@decuk.uvo.dec.com> (raw)
In-Reply-To: 29ej1h$n33@hpuerca.atl.hp.com


>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.
>
>  If this is true, than a function devided into 5 processes might execute
>faster than the same function divided into 5 threads within one process,
>since the 5 process solution would get five times the cpu time.

	This is not true. In OSF/1 and other thread oriented OS's 
	thread is minimum unit of execution - each thread can be
	scheduled individually and can execute parallel in different
	processor. So in fact thread based solution can reach much higher
	level of parallelism as it can use both processes and threads to
	increase the level of concurrent execution.

	There are different implementations in other operating systems 
	than OSF/1 though. Some of them may not be real multi threaded.




			-jari
--
-------------------------------------------------------------------------------
Full-Name:      Jari Tavi			
Organization:   DEC Finland                     Dept:           DS/OSG
Tel:            +358-0-434 5252	                Fax:            +358-0-452 1392 
E-mail:         jpt@rixrax.enet.dec.com
Address:        Digital Equipment Corporation Oy
                PL 16
                02201 Espoo
                FINLAND
-------------------------------------------------------------------------------
* All opinions are my personal, and do not necessarily represent opinions of
* my employer! 


  parent reply	other threads:[~1993-10-14 15:37 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
1993-10-14 15:37       ` Jari Tavi [this message]
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