An Introduction to Programming with C# Threads ebook by Andrew D. Birrell provides an introduction to writing concurrent programs with "threads". A threads facility allows you to write programs with multiple simultaneous points of execution, synchronizing through shared memory. The paper describes the basic thread and synchronization primitives, then for each primitive provides a tutorial on how to use it. The tutorial sections provide advice on the best ways to use the primitives, give warnings about what can go wrong and offer hints about how to avoid these pitfalls. The paper is aimed at experienced programmers who want to acquire practical expertise in writing concurrent programs. The programming language used is C#, but most of the tutorial applies equally well to other languages with thread support, such as Java.
- Introduction
- Why use concurrency?
- The design of a thread facility
- Using Locks: accessing shared data
- Using Wait and Pulse: scheduling shared resources
- Using Threads: working in parallel
- Using Interrupt: diverting the flow of control
- Additional techniques
- Advanced C# Features
- Building your program
- Concluding remarks
Download free C# ebook: An Introduction to Programming with C# Threads (41 pages pdf, 0.7 MB).
No comments:
Post a Comment