Cmpt-300, Summer 2012, Assignment 1 Due Date May 25 2012

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Cmpt-300, Summer 2012, Assignment 1 Due date May 25 2012.

Petra Berenbrink

Question 1 Which of the following instructions should only be allowed in kernel mode? 1. Disable all interrupts. 2. Read the time-of-the-day clock. 3. Change the memory map. Question 2 What is the biggest advantage of implementing threads in user space? What is the biggest disadvantage? Question 3 Why would a thread ever voluntarily give up the CPU? Question 4 Can a thread be preempted by a clock interrupt? If so, under which conditions? If not, why not? Question 5 On all current computers, at least a part of the interrupt handlers are written in assembly language. Why?

You might also like