Multithreading Section
What is thread?
Thread is a part of process, also called as light weight process
What is multithreading?
Simultaneous execution of threads is called multithreading
What is a process?
Program under execution is called process
How to create thread?
By creating instance of Thread class or implementing Runnable interface
Can you name any methods of Thread class?
currentThread( ), setName( ), getName( ), setPriority( ), getPriority( ), join( ), isAlive( )
What is join( ) method of Thread?
Combines two or more threads running process and wait till their execution is completed
What are the states in Thread Life Cycle?
Ready, running, block, wait, dead
What is thread?
Thread is a part of process, also called as light weight process
What is multithreading?
Simultaneous execution of threads is called multithreading
What is a process?
Program under execution is called process
How to create thread?
By creating instance of Thread class or implementing Runnable interface
Can you name any methods of Thread class?
currentThread( ), setName( ), getName( ), setPriority( ), getPriority( ), join( ), isAlive( )
What is join( ) method of Thread?
Combines two or more threads running process and wait till their execution is completed
What are the states in Thread Life Cycle?
Ready, running, block, wait, dead






0 Response to "Viva Questions for Java Lab"