what is the difference between process and Thread?
sani jangir
Thread is a part of process...
thread are the small(subpart) of a process. when we run multiple threading of program then it is known as multiithreading process. The typical difference is that threads (of the same process) run in a shared memory space, while processes run in separate memory spaces.
The differences between threads and processes· Threads will, by default, share memory, but processes by default do not share memory.· A thread cannot exist by itself, a process must start a thread. A process can start multiple threads in other words “threads are not independent like processes”.· Threads will share file descriptors, but among processes more file descriptors are not shared.· Changes to the main thread (cancellation, priority change and so on) may affect the behavior of the other threads of the process; changes to the parent process do not affect the child processes.· Threads will share file system context, but processes don't share file system context.· Threads will share signal handling, but processes don't share signal handling.to learn more about thread and processes please visit : http://www.c-sharpcorner.com/UploadFile/819f33/threads-vs-processes
thread are the small(subpart) of a process. when we run multiple threading of program then it is known as multiithreading process
http://www.allinterview.com/showanswers/258.html
Both processes and threads are independent sequences of execution. The typical difference is that threads (of the same process) run in a shared memory space, while processes run in separate memory spaces.I'm not sure what "hardware" vs "software" threads might be referring to. Threads are an operating environment feature, rather than a CPU feature (though the CPU typically has operations that make threads efficient).Erlang uses the term "process" because it does not expose a shared-memory multiprogramming model. Calling them "threads" would imply that they have shared memory.
process is a program which gets memory allocated to it by operating system. It has a starting point which is start by main thread.Thread is responsible for executing small part of your program. it can run in parallels with other threads within a process.Thread can not exist without a process. It always exist within a process.
Process is a program in execution whereas thread is a separate path of execution in a program.
inside a process thread can exist... inside a thread cannot exist a process.