- Interviewer: Create an empty class called MyThreadParent.
- Interviewer: What are commonly used Thread class methods?
You:
- isAlive(): Tests if the thread is alive.
- yield(): Causes the currently executing thread object to temporarily pause and allow other threads to execute.
- join(): Waits for a thread to die.