COP4600_26-5 - COP4600 26-5-10 Hybrid threading model...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
COP4600 26-5-10 Hybrid threading model Solaris 2 threads user space # = user space threads | = lwp task task task 2 1 1 3 1 1 | | | | | | kernel space L = kernel space thread L L L L L L L L L cpu cpu cpu cpu cpu cpu cpu cpu(dedicated to t3 thr3) all other cpus are sharing , and kernel is responsible for scheduling kernel threads kernel threads - either bound to an LWP or not - scheduled by the kernel a task's thread library dynamically adjusts the number of LWPs in a pool to maximize performance * created new LWPs (e.g., when all of a tasks LWPs are blocked, but there exists runnable user threads) * LWPs are aged and deleted when not used for a "long" time (typically 5 minutes) user level threads * associate data stored in user-space - thread ID - register set - stack - priority LWPs * associated data stored in kernel space - the register set for the thread currently executing in that LWP
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
- memory - accounting information kernel threads * associated data stored in kernel space - kernel register set - point attached to the LWP (if any) - priority and scheduling information user level threads that are many to one on a LWP, usually indicates that they are probably I/O waiting Scheduler activation is a "context for a thread running on a virtual processor" * the number of virtual processors may change during a program's execution * a thread library controls which threads are running on the virtual processors * the kernel informs the thread library when certain events occur.
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 5

COP4600_26-5 - COP4600 26-5-10 Hybrid threading model...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online