You are on page 1of 5

ACTIVITY 1.

1
1. Thread also known as lightweight processes.
2. In multithreaded process, each thread shares code, data, files but have
different register, stack, program counter .

3. What is the four examples of the uses of threads in a single-user multiprocessing


system? Foreground and background work, asynchronous processing, speed of
execution, modular program structure
4. Multithreading refers to the ability of an operating system to support multiple
execution .

1
ACTIVITY 1.2

1. What are the two types of thread? User-level thread & kernel-level thread.
2. Kernel threads are slower to create and manage than the user threads.
3. Operating system handles user level threads as a single thread process.
4. User level thread switching does not require kernel mode privileges.
.

2
ACTIVITY 1.3
1. What is the many-to-one multithreading model?

user space
Kernel space

2. The two-level multithreading model is variation of many-to-many model


.

3
ACTIVITY 2.1
1. What are the three separate functions of scheduling?
Long-term scheduling, medium-term scheduling, short-term scheduling

2. What is long-term scheduling?


Performed when a new process is created. This is a decision whether to
add a new process to be set of processes that currently active.

4
ACTIVITY 2.2
1. How scheduling algorithm is chosen?
Based on criteria that OS want to achieve:
Among the criteria:
 CPU utilization
 Throughput
 Turnaround time
 Response time

You might also like