13 Threads and Animation
In this chapter we introduce threads, which allow two or more pieces of a program to execute in their own threads of control, appearing to work simultaneously. Animation provides a good illustration of thread use. Running an animation in one thread allows the program to continue other processing. We can animate graphics that we draw on the screen or images that we can download from remote sites. Concurrent programming involves threads working together to accomplish a task.
OBJECTIVES
Add threads to C# programs
Use threads in animation ...
Get Computing with C# and the .NET Framework, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.