Sei sulla pagina 1di 2

Question 1: With aid of a drawing, differentiate between User level threads and Kernel level threads (10)

......

......

......

......

......

......

......

......

......

......

......

......

......

......

Question 2: What are the advantages of multithreading? (2)

......

......

......

Question 3: Explain what a race condition is in OS. Give an example. (5)

......

......

......

......

Page 1 of 2
......

......

Question 4: What is a critical region? Also mention the four conditions that must be met to avoid race conditions. (5)

......

......

......

......

......

Question 5: One strategy of achieving mutual exclusion is by Lock Variables. Explain this method giving the flaws
that come with it. (8)
......

......

......

......

......

......

......

......

......

......

......

......

......

Page 2 of 2

Potrebbero piacerti anche