From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,2aedba6752dd2388 X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1993-10-12 11:53:05 PST Path: gmd.de!xlink.net!howland.reston.ans.net!vixen.cso.uiuc.edu!sdd.hp.com!hpscit.sc.hp.com!hpuerca.atl.hp.com!sailer From: sailer@atl.hp.com (Lee Sailer) Newsgroups: comp.unix.osf.misc Subject: Re: Threads better than forks? Date: 12 Oct 1993 15:38:25 GMT Organization: HP Atlanta Educational Services Organization Distribution: world Message-ID: <29ej1h$n33@hpuerca.atl.hp.com> References: <1993Oct11.170510.13690@mnemosyne.cs.du.edu> NNTP-Posting-Host: e3101u01.atl.hp.com X-Newsreader: TIN [version 1.2 PL1.4] 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. lee