While going through most java tutorials, they mention threads as light weight process. I know what's happening in thread creation, but I didn't get the definition of thread. In stackoverflow most of the time answered this question also. But that also I'm confusing. Couldn't get the real idea behind "Light weight process". Can anyone explain simplest way what is meaning of "thread is light weight process" ?
You might call it that way because a thread, like a process, is a way to have a parallel, concurrrent, flow of execution. But contrary to a process, a thread shares the same memory as the other threads in the same process, instead of having a completely separate memory.