Thread#alive?() : alive?() is a Thread class method which checks whether the thread is running or sleeping.
Parameter: Thread values
Return: true – if running
Example #1 :
Thread a alive?() form : true
Example #2 :
Thread a alive?() form : true HI! I am learning to code
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.