Technical details
Written by |
Gastón C. Hillar |
Publisher |
Packt |
Genre |
Manual |
Number of pages |
416 pages |
C# 2008 and 2005 Threaded Programming: Beginner's Guide
- Develop applications that run several tasks simultaneously to achieve greater performance, scalability, and responsiveness in your applications
- Build and run well-designed and scalable applications with C# parallel programming.
- In-depth practical approach to help you become better and faster at managing different processes and threads
- Optimized techniques on parallellized processes for advanced concepts
- Packed with hands-on-examples and clear explanations for better understanding
Most modern machines have dual core processors. This means that multitasking is built right into your computer’s hardware. Using both cores means your applications can process data faster and be more responsive to users. But to fully exploit this in your applications, you need to write multithreading code, which means learning some challenging new concepts.
This book will guide you through everything you need to start writing multithreaded C# applications. You will see how to use processes and threads in C#, .NET Framework features for concurrent programming, sharing memory space between threads, and much more. The book is full of practical, interesting examples and working code.
This book begins with the fundamental concepts such as processes, threads, mono-processor systems, multi-processor systems. As the book progresses, the readers get a clear understanding of starting, joining, pausing and restarting threads. The readers get a better understanding of the simple techniques associated with parallelism. There are short exercises at the end of every chapter for the readers to perform.
The book also includes several practical parallelism algorithms and data structures used for illustration, and best practices and practical topics like debugging and performance.
A practical guide to developing responsive multi-threaded and multi-process applications in C#
What you will learn from this book :
- Transform single-threaded algorithms to multithreaded scalable jobs by using object-oriented capabilities create an independent thread with an asynchronous execution by using a delegate to update the UI
- Achieve responsive user interface using synchronous and asynchronous delegates to dispatch changes to the UI thread
- Specify the degree of parallelism desired for determining the number of threads that the query must use to achieve better performance
- Create applications that use the full power of the processors using parallel programming techniques
- Develop applications to create background threads using the BackgroundWorker component
- Learn debugging techniques to find solutions to multithreaded application problems
Who this book is written for
Whether you are a beginner to working with threads or an old hand that is looking for a reference, this book should be on your desk. This book will help you to build scalable, high performance software using parallel programming techniques.
Students learning introductory threaded programming in C# will also gain benefits from this book.