A process is an executing program. An operating system uses processes to separate the applications that are being executed. A thread is the basic unit to which an operating system allocates processor time.
It is for long-running background work
Thread thread = new Thread(() => {
// Your code here
});
thread.Start();
Parallel programming in .NET is typically done using the Parallel class, which splits tasks into multiple concurrent operations to use multi-core processors more efficiently.
Parallel.For(0, 100, i => {
// Parallelized code here
});