1. What kind of strategies we can have for using thread pools? Name two of them. Thread pools can handle thread lifecycle automatically according to the strategy selected on thread pool creation. An important feature of a thread pool is that it allows applications to degrade gracefully. A ser
更新日期:2015/12/18 00:12:07
1.Next homework will be what kind of strategies we can have for using thread pools Thread pool can be used to fetch a big amount of file, when there is thousand even million of web page to fetch , but our computer don’t have the ability to create that much thread, thats the time when thread po
更新日期:2015/12/17 23:29:20
1. What kind of strategies we can have for using thread pools? Servicing a request with an existing thread is faster than waiting to create a thread. Second, a thread pool limits the number of threads that exist at any one point. This is particularly important on systems that
更新日期:2015/12/17 23:08:05
(1) Keep Tasks Short and Nonblocking. Thread pool tasks should be as small as possible, but no smaller. One reason to prefer making tasks short is because short tasks can spread more evenly and thus use hardware resources well. (2) One to one relationship of user level thread to the kernel lev
更新日期:2015/12/17 22:37:13
更新日期:2015/12/17 21:56:25
1.Next homework will be what kind of strategies we can have for using thread pools Thread pool can be used to fetch a big amount of file, when there is thousand even million of web page to fetch , but our computer don’t have the ability to create that much thread, thats the time when thread poo
更新日期:2015/12/17 21:33:05
1. Keep Tasks Short and Nonblocking. Thread pool tasks should be as small as possible, but no smaller. One reason to prefer making tasks short is because short tasks can spread more evenly and thus use hardware resources well. 2. One to one relationship of user level thread to the kernel level
更新日期:2015/12/17 21:14:40
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.
更新日期:2015/12/17 21:05:47
1. What kind of strategies we can have for using thread pools? Seperating task to be performed from the machanics of creating the task allows us to use different strategies such as scheduling strategies and terminating strategies for running the task. As a new work to do, it creat new thread
更新日期:2015/12/17 20:55:32
I.what kind of strategies we can have for using thread pools A: (1)The number of threads in the pool can be set heuristically upon system factors. (2)More sophisticated thread-pool architectures can dynamically adjust the number of threads in the pool according to usage patterns. II.why t
更新日期:2015/12/17 20:52:35
1.what kind of strategies we can have for using 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? One-to-one model provi
更新日期:2015/12/17 20:52:25
1.what kind of strategies we can have for using 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. Because each kernel thread
更新日期:2015/12/17 20:38:26
1.what kind of strategies we can have for using thread pools? ANS: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 provide
更新日期:2015/12/17 20:38:13
1.Q: What kind of strategies we can have for using thread pools? Name two of them. A: When a server receives a request, it awakens a thread form this pool─if one is available─and passes it the request for service.Once the thread completes its service,it returns to the pool and awaits more work.If
更新日期:2015/12/17 20:32:16
更新日期:2015/12/17 20:28:43
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
更新日期:2015/12/17 19:12:49
1. What kind of strategies we can have for using thread pools? Ans:Creating new threads every time one is needed and then deleting it when it is done can be inefficient, and can also lead to a very large ( unlimited ) number of threads being created. An alternative solution is to create a numbe
更新日期:2015/12/17 18:38:54
1. Which situation is suitable to use message passing instead of shared-memory model for communication between processes? What are the pros and cons of using these two models? If data is not very much, we can use message passing. Because no conflicts need to be avoided. It’s easier to control p
更新日期:2015/12/17 17:55:05
1. What kind of strategies we can have for using thread pools? Answer: A thread pool is a group of pre-instantiated, idle threads which stand ready to be given work. These are preferred over instantiating new threads for each task when there is a large number of short tasks to be done rather tha
更新日期:2015/12/17 17:53:30
1. Give two reasons why caches are useful. What problems do they solve? What problems do they cause? If a cache can be made as large as the device for which it is caching (for instance, a cache as large as a disk), why not make it that large and eliminate the device? 1.Ans: Caches are u
更新日期:2015/12/17 17:52:34