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
Why string is not a wrapper class?
What are the two basic ways in which classes that can be run as threads may be defined?
What is anti pattern in programming?
Can you explain the private protected field modifier?
How many types of flags are there?
What causes memory leak in java?
What is json parser in java?
What is array initialization in java?
What is the difference between preparedstatement and statement in java?
Is binary a low level language?
What is the relationship difference the canvas class and the graphics class?
What is the equal sign?
What are the benefits of java?
What is identifier with example?
Which sorting algorithm is best in java?