Introduction
The article deals with explaining the concepts behind implementing multi-threading applications in .NET through a working code example. The article covers the following topics in brief:
Concepts of threading
How to implement multi-threading in .NET
Concepts behind implementing Thread Safe applications
Deadlocks
What is a Process?
A process is an Operating System context in which an executable runs. It is used to segregate virtual address space, threads, object handles (pointers to resources such as files), and environment variables. Processes have attributes such as base priority class and maximum memory consumption.
Meaning…
A process is a memory slice that contains resources
An isolated task performed by the Operating System
An application that is being run
A process owns one or more Operating System threads
Technically, a process is a contiguous memory space of 4 GB. This memory is secure and private and cannot be accessed by other processes.
What is a Thread?
A thread is an instruction stream executing within a process. All threads execute within a process and a process can have multiple threads. All threads of a process use their process’ virtual address space. The thread is a unit of Operating System scheduling. The context of the thread is saved / restored as the Operating System switches execution between threads.
Meaning…
A thread is an instruction stream executing within a process.
All threads execute within a process and a process can have multiple threads.
All threads of a process use their process’ virtual address space.
What is Multi-Threading?
Multi threading is when a process has multiple threads active at the same time. This allows for either the appearance of simultaneous thread execution (through time slicing) or actual simultaneous thread execution on hyper-threading and multi-processor systems.
Read more: Codeproject
0 comments:
Post a Comment