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
- [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.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
Understanding threading2m 55s
-
(Locked)
Context switching7m 12s
-
(Locked)
Thread naming2m 33s
-
(Locked)
Shared resources2m 52s
-
(Locked)
Shared resources demo7m 35s
-
(Locked)
Threads vs. processes1m 1s
-
(Locked)
Local memory2m 50s
-
(Locked)
Thread pool2m 41s
-
(Locked)
Thread pool demo9m 49s
-
(Locked)
Other threading concepts3m 27s
-
(Locked)
Exception handling4m 37s
-
-
-
-