advancedMultithreading & Concurrency262 of 436
Difference between @Async and a manually managed thread pool in Spring
Tests whether you know @Async is a proxy-based abstraction that still delegates to an underlying Executor (often the default SimpleAsyncTaskExecutor, which doesn't pool), so misconfiguring it can silently spawn an unbounded thread per call unlike an explicitly sized pool.
Ready to master this question?
Generate a complete walkthrough — background, the full answer in plain language, a working code example explained line by line, a real-world scenario, common mistakes, and how this same question gets asked in different ways.
Sign in to generate a response