心得分享

Card image cap

謝同學 報告/作業 分享經驗 12/17 12/11 OS作業

12/17 12/11 OS作業
名稱 12/11 OS作業
日期 12/17
課程名稱 作業系統OS
指導教師 劉艾華

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.


Because each kernel thread is actually a different kernel-schedulable entity, multiple threads can run concurrently on different processors.
It can achieve significant speedups when migrated from uniprocessors to multiprocessors.



3. Please specify the differences between processes and threads.


Threads are used for small tasks, whereas processes are used for more ‘heavyweight’ tasks – basically the execution of applications.
Another difference between a thread and a process is that threads within the same process share the same address space, whereas different processes do not.

更新日期:2015/12/17 下午 09:05:47