English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

4 answers

Two threads can share a common address-space(memory area in RAM).
But 2 process NEVER share address space. Each process has different address space.

2006-11-28 23:15:54 · answer #1 · answered by Anonymous · 0 1

A thread in computer science is short for a thread of execution. Threads are a way for a program to split itself into two or more simultaneously (or pseudo-simultaneously) running tasks. .

A process is a running instance of a program, including all variables and other state.

Threads and processes differ from one operating system to another, but in general, the way that a thread is created and shares its resources is different from the way a process does.

At least one thread exists within each process.

Differences:

1.Processes are independent and carry considerable state information.
2.Have separate address spaces
3.Interact only though the system-provided mechanisms.
4.A process is the "heaviest" unit of kernel scheduling.

Threads on the other hand
1.Share state information of a single process
2.Share memory and other resources
3.Context switching between different threads is faster than between different processes.
4.A thread is the "lightest" unit of kernel scheduling.

Have a nice day...
:)

2006-11-28 23:01:33 · answer #2 · answered by Aqua 4 · 2 2

A thred is part of the process but not the whole process just like a finger isn't a hand.

2006-11-28 23:03:59 · answer #3 · answered by teddy bear 1 · 0 1

ask B. gates

2006-11-28 23:09:13 · answer #4 · answered by SKK P 2 · 0 3

fedest.com, questions and answers