Module 1 Threads Part 2 (1)
Module 1 Threads Part 2 (1)
a process.
web server.
Efficient communication.
switch threads.
Utilization of multiprocessor architectures to a greater
privileges.
User level thread can run on any operating system.
level thread.
User level threads are fast to create and manage.
Disadvantages
In a typical operating system, most system calls are
blocking.
multiprocessing
Kernel Level Threads
o In this case, thread management done by the Kernel.
area.
o Kernel threads are supported directly by the operating
system.
o Any application can be programmed to be multithreaded.
Kernel threads are generally slower to create and manage than the
user threads.
Transfer of control from one thread to another within same process
Multithreading Models
Some operating system provides a combined user level
system in such a way that system does not support them then Kernel
threads use the many to one relationship modes.
One to one model
• There is one to one relationship of user level thread to the
relationship model.
Multicore System
A single computing component with multiple cores (Independent
system.
Individually, these cores may read and run computer instructions.
simultaneously.
It will increase the overall speed of the system’s program execution
Advantages
• Multicore processors may execute more data than single-
core processors
processors
• These systems are use huge electricity
processors
CPU scheduling criteria
Many criteria have been suggested for comparing CPU scheduling
algorithms.
Which characteristics are used for comparison can make a
ready queue.
Response time - In an interactive system, turnaround time may
not be the best criterion.
• Often, a process can produce some output fairly early and can
continue computing new results while previous results are being
output to the user.
• Thus, another measure is the time from the submission of a request
device.
• It is desirable to maximize CPU utilization and throughput