Professional Documents
Culture Documents
Submisson - Week 3 (1.1 - 2.2) - Mohd Khairul Adne Ufh220029
Submisson - Week 3 (1.1 - 2.2) - Mohd Khairul Adne Ufh220029
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 .
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
3
ACTIVITY 2.1
1. What are the three separate functions of scheduling?
Long-term scheduling, medium-term scheduling, short-term scheduling
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