1.

What requires less resources?(a) Thread(b) Process(c) Thread and Process(d) Neither Thread nor ProcessI got this question in an interview.The doubt is from Multithreading topic in portion Multithreading of Java

Answer»

Right answer is (a) Thread

Best explanation: Thread is a LIGHTWEIGHT and REQUIRES LESS RESOURCES to CREATE and exist in the process. Thread shares the process resources.



Discussion

No Comment Found

Related InterviewSolutions