Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Java by (6.5k points)
I don't understand the concept of threads.

1 Answer

0 votes
by (11.3k points)

In Java, a thread represents a process within a process. And multiple threads represent multiple processes within a single process. A thread, hence, is also called a lightweight process. Basically, this means that for any process to run, it relies on multitudes of threads to perform every subtask needed to accomplish the process goal. And every thread has its own local variables, stack, and program counter. 

If you're looking to learn java, you should get a better understanding of threads and processes by doing a project which requires concurrent execution of various components of a program.

Related questions

0 votes
1 answer
asked Feb 18, 2020 in Java by angadmishra (6.5k points)
0 votes
1 answer
0 votes
1 answer
asked Feb 20, 2020 in Java by angadmishra (6.5k points)

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...