From the course: Threading in C#

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Threads vs. processes

Threads vs. processes - C# Tutorial

From the course: Threading in C#

Start my 1-month free trial

Threads vs. processes

- [Instructor] Threads versus Processes. As we saw earlier that processes run in parallel on a computer. In a very similar fashion, the threads run in parallel except just within a single process. One thing to keep in mind is that processes are fully isolated from each other, whereas the threads have a limited degree of isolation. As mentioned earlier, threads share heap memory with other threads running in the same application, even though they have local variables, which actually are part of the local memory that cannot be accessed by other threads. However, with shared memory, shared resources could simply be fetched, for example, by a background thread while, let's say, the foreground thread or the main thread can actually display the data as it arrives.

Contents