Answer Posted / bhushan
Thread is light weight process.
One Process can have multiple threads.
Eg:
I opened Microsoft Word doc and writing at the same time
spell checker is also running.
It implies in 1 process multiple threads can run
simultaneously with less overhead.
To create separate process for different functionality will
create overhead.
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What are the two types of streams offered by java 8?
Is string passed by reference in java?
What are anonymous inner classes?
What is consumer interface?
Why is sizeof not a function?
Define a java class.
Why singleton is not thread safe?
What is method in java with example?
What is the purpose of declaring a variable as final?
Explain the difference between private, public, package and protected in java?
Difference between linkedlist and arraylist.
What does the string method compareto () do?
How do you avoid global variables?
Which data type is class in java?
What is ++ a in java?