12/18 OS作業3 | |
---|---|
名稱 | OS作業3 |
日期 | 12/18 |
課程名稱 | 作業系統 |
指導教師 | 劉艾華 |
1. What kind of strategies we can have for using thread pools?
ThreadPool initialize some threads and use in specific times, in order to saving time.
ThreadPool can help manage each cycle of the thread, it makes us can be more concentrate to work, and no write the code of the thread.
2.Why the windows uses one to one mapping for the threads while there are many to many available?
One-to-one model provides more concurrency. It also another thread to run when a thread makes a blocking system call. It supports multiple thread to execute in parallel on microprocessors.
3.To specify the differences between processes and threads.
Both processes and threads are independent sequences of execution. The typical difference is that threads (of the same process) run in a shared memory space, while processes run in separate memory spaces.
更新日期:2016/1/5 下午 10:29:57