1.What kind of strategies we can have for using thread pools?
Ans: 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?
Ans:Because the one to one model allows for greater concurrency, and it also allows multiple threads to run in parallel on multiprocessors.
3.Specify the differences between processes and threads.
Ans: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.
COPYRIGHT (c) 2016 ePortfolio ALL RIGHTS RESERVED.