From the course: Java Concurrency Troubleshooting: Latency and Throughput

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Challenge: Find the sleeping method

Challenge: Find the sleeping method - Java Tutorial

From the course: Java Concurrency Troubleshooting: Latency and Throughput

Start my 1-month free trial

Challenge: Find the sleeping method

(upbeat music) - [Tayo] How about you play detective with your JVM? First, please go ahead and import the exercise package for this video into your favorite IDE. When you're done, put your detective hat on. In this exercise package, please locate the com.linkedin.learning.samples.troubleshootlatencyconch application class. No peeking. Don't open any other files inside the project. Running the main method in this class will kick off a process of generating and printing anagrams to the console, but there's a catch. One or more of the executing methods goes to sleep during the process of generating the anagrams. Your mission, should you choose to accept it, is to capture thread dumps and identify the method in which the thread falls asleep. We're counting on you. Find sleeping beauty, good luck.

Contents