Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

ًWhat is the difference between Thread and Background Process in ASP.NET ?

user-image
Question added by Deleted user
Date Posted: 2015/06/13
Ngonidzashe Sibare
by Ngonidzashe Sibare , Senior Systems Engineer / Analyst , Comarton Consultants Pvt Ltd

Process: Each process provides the resources needed to execute a program. A process has a virtual address space, executable code, open handles to system objects, a security context, a unique process identifier, environment variables, a priority class, minimum and maximum working set sizes, and at least one thread of execution. Each process is started with a single thread, often called the primary thread, but can create additional threads from any of its threads.Thread:A thread is the entity within a process that can be scheduled for execution. All threads of a process share its virtual address space and system resources. In addition, each thread maintains exception handlers, a scheduling priority, thread local storage, a unique thread identifier, and a set of structures the system will use to save the thread context until it is scheduled. The thread context includes the thread's set of machine registers, the kernel stack, a thread environment block, and a user stack in the address space of the thread's process. Threads can also have their own security context, which can be used for impersonating clients. 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.

More Questions Like This

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.