12/18 12/18os作業

名稱
12/18os作業
日期
12/18
課程名稱
作業系統
指導教師
劉艾華
心得
1.what kind of strategies we can have for using thread pools
(1)Thread can be kept alive , waiting for a new task , the task will not end with the establishment of further destruction .
(2)Thread Thread Pool limit the maximum number of systems to avoid waste .
(3)Thread by Thread Pool lifecycle control
There are some situations in which the one-to-one relationship may improve performance. For our example ,if some columns are rarely used, it may make sense to separate them out into a separate database table that is linked to the original table using a one-to-one relationship. This would reduce the overhead needed to retrieve the columns whenever a query is performed.


2.The next question for chapter 4 is why the windows uses one to one mapping for the threads while there are many to many available
one to one can increaseperformance, but when one to one goes wrong, many to many can instead of it .


3.The third question for chapter 4 is to specify the differences between processes and threads
The typical difference is that threads (of the same process) run in a shared memory space, while processes run in separate memory spaces.

A thread is the entity within a process that can be scheduled for execution. All threads of a process share its virtual address space and system resources.