Question: Why does Java have two ways to create child threads (by extending Thread or implementing Runnable) and which approach is better? What are the two
Why does Java have two ways to create child threads (by extending Thread or implementing Runnable) and which approach is better?
What are the two ways in which you can determine whether a thread has ended? Does the operating systems implementation of multitasking affect how much CPU time a thread receives?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
