-
-
Notifications
You must be signed in to change notification settings - Fork 27k
Implement Thread-Pool Executor pattern #3226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Comments
Hi, I'd like to take on this issue. Could you please assign it to me? Thank you! |
yybmion
added a commit
to yybmion/java-design-patterns
that referenced
this issue
Apr 29, 2025
- Add implementation of Thread-Pool Executor pattern using hotel front desk example - Include unit tests - Create detailed README with pattern explanation and examples - Add Java source code with appropriate Javadoc comments Closes iluwatar#3226
yybmion
added a commit
to yybmion/java-design-patterns
that referenced
this issue
Apr 29, 2025
- Add implementation of Thread-Pool Executor pattern using hotel front desk example - Include unit tests - Create detailed README with pattern explanation and examples - Add Java source code with appropriate Javadoc comments Closes iluwatar#3226
yybmion
added a commit
to yybmion/java-design-patterns
that referenced
this issue
Apr 29, 2025
- Add implementation of Thread-Pool Executor pattern using hotel front desk example - Include unit tests - Create detailed README with pattern explanation and examples - Add Java source code with appropriate Javadoc comments Closes iluwatar#3226
yybmion
added a commit
to yybmion/java-design-patterns
that referenced
this issue
Apr 29, 2025
- Add implementation of Thread-Pool Executor pattern using hotel front desk example - Include unit tests - Create detailed README with pattern explanation and examples - Add Java source code with appropriate Javadoc comments Closes iluwatar#3226
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
The Thread-Pool Executor is a concurrency design pattern that maintains a pool of worker threads to process tasks. Rather than creating a new thread each time a task is submitted, the pattern reuses existing threads in the pool. This leads to more efficient CPU usage, less overhead from thread creation/destruction, and improved overall application performance.
Key Elements
Runnable
orCallable
) are placed in a queue for execution.execute
,submit
) and managing the pool (shutdown, etc.).References
ThreadPoolExecutor
Acceptance Criteria
thread-pool-executor
(or similar)..md
file) explaining the pattern, including code examples, diagrams, or both.The text was updated successfully, but these errors were encountered: