sol-Tutorial2 - Question 1 (i) Asynchronous interrupt (ii)...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Question 1 (i) Asynchronous interrupt (ii) Asynchronous interrupt and asynchronous signal (iii) Synchronous interrupt (iv) Asynchronous signal (v) Synchronous interrup and synchronous signal Question 2 a) User-Level Threads A user thread is normally created by a threading library and scheduling is managed by the threading library itself, which runs in user mode. The kernel sees one single process and does not know about the existence of the user-level threads. Thus, when a thread calls blocking system call, the whole process is blocked. Kernel-Level Threads Kernel-level threads are implemented in the kernel and is the basic unit for the kernel’s scheduling mechanism. There is more overhead with switching in kernel -level threads. b) For this question, we may not have a definite answer to certain sub-questions as it really depends on many factors. i. Shared access to a global variable amongst a set of threads within the same process issue is a problem for both approaches. Both approaches need to support sharing as shared access is an important mechanism for
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

sol-Tutorial2 - Question 1 (i) Asynchronous interrupt (ii)...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online