Operating Systems Homework 3

名稱
Operating Systems Homework 3
描述
Operating Systems Homework 3
課程名稱
Operating Systems
指導教師
Dr. Ay-Hwa Andy Liou
心得
What kind of strategies we can have for using thread pools? Name two of them.

Create a number of threads at process startup and place them into a pool, where they sit and wait for work.

Why the windows uses one-to-one mapping for the threads while it has many-to-many available?

One-to-one model provides more concurrency than many-to-one model

Please specify the differences between processes and threads.

Threads are easier to create than processes since they don't require a separate address space.
Processes are independent of each other. Threads, since they share the same address space are interdependent, so caution must be taken so that different threads don't step on each other.
A process can consist of multiple threads