From: denham@denham.zk3.dec.com (Jeffrey M. Denham)
Subject: Re: Scheduling of threads vs processes
Date: 1995/08/14 [thread overview]
Message-ID: <1995Aug14.140453.28397@decvax.dec.com> (raw)
In-Reply-To: byrappag.807822983@stimpy.cs.iastate.edu
In article <byrappag.807822983@stimpy.cs.iastate.edu>,
byrappag@cs.iastate.edu (Anand Byrappagari) writes:
|>Hi all,
|>
|> I need some help regarding scheduling of threads (light
|>weight
|> processes).
|>
|> When a system supports kernel level threads how is the
|>scheduling
|> of threads done. Is the time allocated to the parent process
|> divided into smaller parts for each of its threads or is each
|> thread considered to be equivalent to a process when the CPU
|> is scheduled. This is important because if each thread is
|> considered equivalent to a process when scheduling the CPU
|>then
|> a process with N threads will get N times more CPU time then
|>a
|> unthreaded process with the same priority.
|>
|> I am especially interested in how this problem is handled in
|> decthreads package available on osf1.
|>
|>Thanks,
|>Anand
|>
|>
Current on Digital UNIX (DEC OSF/1), all threads are scheduled with a
global scope. In other words, threads of the same priority compete equally
for the CPU, regardless of which process they belong to. The DECthreads
package is currently complete uninvolved in scheduling decisions; that
is all left to the kernel's scheduler.
On an upcoming version, however, this will change. The kernel's scheduling
won't change, but DECthreads (POSIX 1003.1c pthreads) will become much more
involved in scheduling. Without going into details, I can say that the effect
will much more that of the kernel scheduling the process and DECthreads
scheduling the threads within the process.
--
-----------------------------------------------------------------------------
Jeff Denham, Unix Software Group, Digital Equipment Corporation
email: denham@zk3.dec.com, voice: (603) 881-0057
next prev parent reply other threads:[~1995-08-14 4:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-08-07 4:00 Scheduling of threads vs processes Anand Byrappagari
1995-08-14 4:00 ` Jeffrey M. Denham [this message]
1995-08-15 4:00 ` Tony Cox
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