The document shows the output of multiple threads running when the main thread suspends. Three threads are running concurrently, each printing their name and a number that decreases each second. The main thread sleeps for 10 seconds, allowing the other threads to run before resuming.
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
21 views
Thread Demo
The document shows the output of multiple threads running when the main thread suspends. Three threads are running concurrently, each printing their name and a number that decreases each second. The main thread sleeps for 10 seconds, allowing the other threads to run before resuming.