Академический Документы
Профессиональный Документы
Культура Документы
Faculty of Engineering
Computer and Systems Engineering
Fall 2014
Homework 2
CS333: Operating Systems
Assigned: November 3, 2014
Due: November 12, 2014
1 of 2
11. Would an algorithm that performs several independent calculations concurrently (for example
matrix multiplication) be more efficient if it used threads or if it did not use threads? Discuss this
point in both of user/kernel threads and uni/multi processors. Write down the pseudo code for
an algorithm that uses threads to do matrix multiplication.
12. Consider an environment in which there is a one-to-one mapping between user-level threads
and kernel-level threads that allows one or more threads within a process to issue blocking system calls while other threads continue to run. Explain why this model can make multithreaded
programs run faster than their single-threaded counterparts on a uniprocessor computer.
13. If a process exits and there are still threads of that process running, will they continue to run?
2 of 2