Tag

submit

1 views collected around this technical thread.

Selected Java Interview Questions
Selected Java Interview Questions
Nov 11, 2024 · Backend Development

Understanding the Difference Between execute() and submit() in Java ThreadPoolExecutor

This article explains how Java's ThreadPoolExecutor handles tasks submitted via execute() and submit(), why execute() prints exceptions directly while submit() defers them until Future.get() is called, and provides detailed source‑code analysis and examples to illustrate the underlying mechanisms.

ConcurrencyFutureTaskJava
0 likes · 14 min read
Understanding the Difference Between execute() and submit() in Java ThreadPoolExecutor
IT Services Circle
IT Services Circle
Jun 18, 2024 · Fundamentals

Thread Pool Exceptions: Destroy or Reuse? and Pre‑starting Core Threads

This article explains how Java thread pools handle exceptions differently when using execute() versus submit(), and shows how ThreadPoolExecutor can pre‑start core threads before task submission to achieve pool warm‑up.

ConcurrencyJavaThreadPoolExecutor
0 likes · 4 min read
Thread Pool Exceptions: Destroy or Reuse? and Pre‑starting Core Threads
Selected Java Interview Questions
Selected Java Interview Questions
May 24, 2024 · Backend Development

Memory Overhead of execute vs submit in Java ThreadPoolExecutor

This article analyses the memory consumption of tasks submitted to a Java ThreadPoolExecutor using execute and submit, compares lambda and queue implementations, and quantifies the overhead of internal objects such as Worker, Node, FutureTask, and RunnableAdapter.

ConcurrencyJavaThreadPoolExecutor
0 likes · 9 min read
Memory Overhead of execute vs submit in Java ThreadPoolExecutor