mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-12 08:14:13 +00:00
#354 Add maven model for feature toggle design pattern
This commit is contained in:
1 parent
cf10bd1d05
commit
d7526fc7c0
86 files changed
+1165
-270
No files matched your search
@@ -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.
|
||||
|
||||

|
||||
|
||||
**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
|
||||
Reference in new issue
Block a user