Identify Spiking Threads
Learn how to identify spiking threads.
What’s a spiking thread?
We refer to a thread that causes a sudden rise in CPU usage as a spiking thread (as it spikes the CPU). This usually happens due to some sort of infinite loop. In this exercise, we’ll learn how to identify spiking threads from the core dump.
Application source code
We have created a multi-threaded application that generates a spiking thread.
If we were to run this application and observe the CPU usage using the top command, we’d observe that it’s ...