Skip to content

Commit 0e0fde5

Browse files
committed
Update notes
1 parent 543f384 commit 0e0fde5

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

notes/performance-in-multithreading.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,13 @@ The answer is NO!
8888
![When does it matter?](../images/throughput_1.png)
8989

9090
When we have a program that is given a concurrent flow of tasks and want to perform as many tasks as possible, as fast as possible.
91-
In that case **throughput** will be the right performance metric to evaluate the performance of our program.
91+
In that case **throughput** will be the right performance metric to evaluate the performance of our program.
92+
93+
94+
## Thread Pooling
95+
96+
- Implementing a thread pool is not trivial
97+
- JDK comes with a few implementations of thread pools
98+
- Fixed Thread Pool Executor
99+
- Using a Fixed Thread Pool, we maintain a constant number of threads, and eliminate the need to recreate the threads
100+
- It results in significant performance improvement (`xN`)

0 commit comments

Comments
 (0)