心得分享

Card image cap

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

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

1.What kind of strategies we can have for using thread pools.

Unlimited treads could exhault system resources so we use a thread pools.
Create a number of threads at process startup and place them into a pool, where they sit

and wait for work.
2. Why the windows uses one to one mapping for the threads while there are many to many available?

ANS: It provides more concurrency than others by allowing another thread to run when a thread makes a blocking system call.It also allows multiple threads to run in parallel on multiprocessors.
3.Q: Please specify the differences between processes and threads.

A: 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.

更新日期:2016/1/4 下午 08:00:15