#354 Add maven model for feature toggle design pattern

This commit is contained in:
Joseph McCarthy
2016-01-25 21:14:24 +00:00
parent cf10bd1d05
commit d7526fc7c0
86 changed files with 1165 additions and 270 deletions

View File

@@ -10,7 +10,8 @@ tags:
- Performance
---
**Intent:** It is often the case that tasks to be executed are short-lived and
## Intent
It is often the case that tasks to be executed are short-lived and
the number of tasks is large. Creating a new thread for each task would make
the system spend more time creating and destroying the threads than executing
the actual tasks. Thread Pool solves this problem by reusing existing threads
@@ -18,6 +19,7 @@ and eliminating the latency of creating new threads.
![alt text](./etc/thread-pool.png "Thread Pool")
**Applicability:** Use the Thread Pool pattern when
## Applicability
Use the Thread Pool pattern when
* you have a large number of short-lived tasks to be executed in parallel