Skip to main content

Command Palette

Search for a command to run...

#multithreading

Articles tagged with #multithreading

  1. ThreadPoolExecutor는 언제 스레드를 새로 만들까 — execute()의 3단계

    Executors.newFixedThreadPool(10) 한 줄을 쓰면서도, 11번째 작업이 오면 스레드가 11개로 늘어날 거라고 막연히 기대해 본 적 없으신가요. 실제로는 큐가 먼저 무한히 쌓이고 스레드는 영원히 10개에 머물러요. 이 글은 ThreadPoolExecutor가 작업을 받았을 때 "스레드를 새로 만들지, 큐에 넣을지, 거부할지"를 결정하는

    May 21, 202617 min read