* Scheduling of threads vs processes
@ 1995-08-07 4:00 Anand Byrappagari
1995-08-14 4:00 ` Jeffrey M. Denham
0 siblings, 1 reply; 3+ messages in thread
From: Anand Byrappagari @ 1995-08-07 4:00 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Scheduling of threads vs processes
1995-08-07 4:00 Scheduling of threads vs processes Anand Byrappagari
@ 1995-08-14 4:00 ` Jeffrey M. Denham
1995-08-15 4:00 ` Tony Cox
0 siblings, 1 reply; 3+ messages in thread
From: Jeffrey M. Denham @ 1995-08-14 4:00 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Scheduling of threads vs processes
1995-08-14 4:00 ` Jeffrey M. Denham
@ 1995-08-15 4:00 ` Tony Cox
0 siblings, 0 replies; 3+ messages in thread
From: Tony Cox @ 1995-08-15 4:00 UTC (permalink / raw)
denham@denham.zk3.dec.com (Jeffrey M. Denham) wrote:
>
>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.
>
Really? This seems like a step backwards. How will multiple threads within
a single process be able to utilize multiple CPU's?
Tony Cox
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1995-08-15 4:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-08-07 4:00 Scheduling of threads vs processes Anand Byrappagari
1995-08-14 4:00 ` Jeffrey M. Denham
1995-08-15 4:00 ` Tony Cox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox