Sitelet https://github.com/Dis-ease-20/Java-DSA-InterviewPrep/tree/main/Threads
Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Threads In Java

A thread is a lightweight subprocess. It is a separate path of execution because each thread runs in a different stack frame. A process may contain multiple threads. Threads share the process resources, but still, they execute independently.

Following are some questions asked on threads :

  • What is the thread?
  • Differentiate between process and thread?
  • What do you understand by inter-thread communication?
  • What is multithreading?

References