Explain Multi-Threading in Java?

devquora
devquora

Posted On: Feb 22, 2018

 

It is a process in java through which multiple threads can be executed simultaneously. A thread can be explained as a lightweight sub-process, it is the smallest unit of processing. Both multiprocessing and multithreading are done to achieve multitasking in java. The reason why most of the developers use multithreading over multiprocessing is that the threads use a shared memory area. Because they don’t allocate a separate area in the memory and they save a lot of space in the memory because of that.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Java Interview Questions asked in Citibank

    What is difference overloading and overriding?

    Differences between overloading and overridingOverloading OverridingOverloading is performed at compilation time. Overriding is performed at runtimeOverloading is also called sta...