Java Multi-Threading Question:
Download Job Interview Questions and Answers PDF
Difference between Process and Thread?
Answer:
A process can contain multiple threads.
A process has its own memory address space whereas a thread doesn't.
Threads share the heap belonging to their parent process.
One process cannot corrupt another process
A thread can write the memory used by another thread.
A process has its own memory address space whereas a thread doesn't.
Threads share the heap belonging to their parent process.
One process cannot corrupt another process
A thread can write the memory used by another thread.
Download Java Multi-Threading Interview Questions And Answers
PDF
Previous Question | Next Question |
What are the two types of multitasking? | What is time slicing? |