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
How do you allocate memory to object?
What is busy spin, and why should you use it?
Can a static class have a constructor java?
What language is pass by reference?
Explain about oops concepts.
Can we use static class instead of singleton?
Explain about wait() method?
What about method local inner classes or local inner classes in java?
What is volatile keyword in java
What are the 8 primitive data types in java?
Why is stringbuffer not immutable?
Can we clone singleton object?
What is type safety in java?
What is the difference between heap and stack memory?
What is a boolean expression in java?