Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
Describe the difference between a Thread and a Process?
Describe the difference between a Thread and a Process?
✍: Guest
Answer1:
Thread - is used to execute more than one program at a time.
process - executes single program
Answer2:
A thread is a path of execution that run on CPU, a proccess is a collection of threads that share the same virtual memory. A process have at least one thread of execution, and a thread always run in a process context.
Answer3:
The operating system creates a process for the purpose of running a program. Each process executes a single program. Processes own resources allocated by the operating system. Resources include memory, file handles, sockets, device handles, and windows. Processes do not share address spaces or file resources except through explicit methods such as inheriting file handles or shared memory segments, or mapping the same file in a shared way.
Threads allow a program to do multiple things concurrently. At least one thread exists within each process. If multiple threads can exist within a process, then they share the same memory and file resources.
Answer4:
Thread is a light weight process, which is initialized itself by a process. Light weigt processes does not loads resources required by it itself, these are loaded by its parent process which has generated it.
2014-02-14, 2033👍, 0💬
Popular Posts:
How To Fade Image Edges to Background Colors? - PSP Tutorials - Fading Images to Background Colors w...
Can you explain what is “AutoPostBack” feature in ASP.NET ? If we want the control to automatically ...
In C#, what is a weak reference? Generally, when you talk about a reference to an object in .NET (an...
What are shared (VB.NET)/Static(C#) variables? Static/Shared classes are used when a class provides ...
Where are all .NET Collection classes located ? System.Collection namespace has all the collection c...