Professional Documents
Culture Documents
professorgstatla@gmail.com
www.eazynotes.com
27-Jan-11
THREADS
THREAD
www.eazynotes.com
27-Jan-11
MULTI-THREADING
www.eazynotes.com
27-Jan-11
MULTI-THREADING
For e.g.:
The tasks in a web browser are divided into multiple
threads.
www.eazynotes.com
27-Jan-11
27-Jan-11
www.eazynotes.com
Like process, each thread has its own program counter and
stack.
www.eazynotes.com
27-Jan-11
www.eazynotes.com
27-Jan-11
TYPES OF THREADS
Threads are of three types:
Kernel Level Threads
Hybrid Threads
www.eazynotes.com
27-Jan-11
www.eazynotes.com
27-Jan-11
10
www.eazynotes.com
27-Jan-11
11
HYBRID THREADS
www.eazynotes.com
27-Jan-11
12
MULTI-THREADING MODELS
Depending on the support for user and kernel
threads, there are three multithreading models:
Many-to-One Model
One-to-One Model
Many-to-Many Model
www.eazynotes.com
27-Jan-11
13
MANY-TO-ONE MODEL
www.eazynotes.com
27-Jan-11
14
ONE-TO-ONE MODEL
In this model, each user level thread is mapped to
one kernel level thread.
27-Jan-11
www.eazynotes.com
15
MANY-TO-MANY MODEL
In this model, many user level threads are mapped
to many kernel level threads.
27-Jan-11
www.eazynotes.com
16
17