Professional Documents
Culture Documents
Day 5 Viva
Day 5 Viva
2)What is thread?
Ans:- thread is one of the execution path within a
process.
b) notify
it will make the thread to move from wait pool
to seeking lock state.
c) notifyAll
it will make all the threads to move from wait
pool to seeking lock state.
@Override
public void run()
{
if (target != null) {
target.run();
}
}
Fork Join