Java threads can be in 6 different states: NEW, RUNNABLE, BLOCKED, WAITING, TIMED_WAITING, TERMINATED. When a thread is suspended (i.e., unable to progress further), it will be one of these 3 suspended thread states: BLOCKED, WAITING, TIMED_WAITING. Let's discuss these 3 states with real-life fun examples 🙂 BLOCKED A thread enters the ‘BLOCKED’ state when... Continue Reading →
Different CPU times – Unix/Linux ‘top’
The article explores CPU consumption metrics in Unix/Linux systems, detailing eight metrics: User CPU time, System CPU time, nice CPU time, Idle CPU time, Waiting CPU time, Hardware Interrupt CPU time, Software Interrupt CPU time, and Stolen CPU time. Each metric highlights the CPU's time allocation for various processes, providing essential insights for performance optimization.
I/O waiting CPU time – ‘wa’ in top
The article discusses the metric of 'waiting CPU time' in Unix/Linux systems, which measures how long the CPU waits for I/O operations. High waiting time suggests inefficiencies, requiring investigation if exceeding 10%. It offers solutions to minimize this time, emphasizing root cause analysis and optimization techniques to improve performance and resource management.
