question about threadPool
Quote:
>1.How does the threadPool manage threads?
It manages about (processors*2+1) threads for start and
creates/removes threads dynamically due to needs.
How different from don't use the
Quote:
>threadPool?
You will need create/manage/remove threads handly
Quote:
>2.What is the advantage of it?
Automatization of thread management
When do I use it?
Anytime you have amount of independent work items that
consume external resources and can benefit from
parallelization(or you have more than one processors)
Should I use the threadPool
Quote:
>if the work items are not related to a wait operation?
Why not? Depend on your needs (look previous question)