diego-gomez-olvera03/23/2021, 2:19 PM
This study clearly indicates that memory is allocated to threads at the time of creation, and memory is not allocated based on the thread’s runtime demand. Both hyper working threads and almost dormant threads consume the same amount of memory. Modern Java applications tend to create hundreds (sometimes thousands) of threads. But most of those threads are in a WAITING or TIMED_WAITING state and do nothing.
Kris Wong03/23/2021, 2:39 PM
Dariusz Kuc03/23/2021, 2:55 PM
Kris Wong03/23/2021, 4:00 PM