Multithreading with C# Cookbook - Second Edition

Over 70 recipes to get you writing powerful and efficient multithreaded, asynchronous, and parallel programs in C# 6.0

About This Book

Rewritten and updated to take advantage of the latest C# 6 features

Learn about multithreaded, asynchronous, and parallel programming through hands-on, code-first examples

Use these recipes to build fast, scalable, and reliable applications in C#

Who This Book Is For

This book is aimed at those who are new to multithreaded programming, and who are looking for a quick and easy way to get started. It is assumed that you have some experience in C# and .NET already, and you should also be familiar with basic computer science terminology and basic algorithms and data structures.

What You Will Learn

Use C# 6.0 asynchronous language features

Work with raw threads, synchronize threads, and coordinate their work

Develop your own asynchronous API with Task Parallel Library

Work effectively with a thread pool

Scale up your server application with I/O threads

Parallelize your LINQ queries with PLINQ

Use common concurrent collections

Apply different parallel programming patterns

Use Reactive Extensions to run asynchronous operations and manage their options

In Detail

Multi-core processors are synonymous with computing speed and power in today's world, which is why multithreading has become a key concern for C# developers. Multithreaded code helps you create effective, scalable, and responsive applications.

This is an easy-to-follow guide that will show you difficult programming problems in context. You will learn how to solve them with practical, hands-on, recipes. With these recipes, you'll be able to start creating your own scalable and reliable multithreaded applications. Starting from learning what a thread is, we guide you through the basics and then move on to more advanced concepts such as task parallel libraries, C# asynchronous functions, and much more.

Rewritten to the latest C# specification, C# 6, and updated with new and modern recipes to help you make the most of the hardware you have available, this book will help you push the boundaries of what you thought possible in C#.

Style and approach

This is an easy-to-follow guide full of hands-on examples of real-world multithreading tasks. Each topic is explained and placed in context, and for the more inquisitive, there are also more in-depth details of the concepts used.

Om den här boken

Over 70 recipes to get you writing powerful and efficient multithreaded, asynchronous, and parallel programs in C# 6.0

About This Book

Rewritten and updated to take advantage of the latest C# 6 features

Learn about multithreaded, asynchronous, and parallel programming through hands-on, code-first examples

Use these recipes to build fast, scalable, and reliable applications in C#

Who This Book Is For

This book is aimed at those who are new to multithreaded programming, and who are looking for a quick and easy way to get started. It is assumed that you have some experience in C# and .NET already, and you should also be familiar with basic computer science terminology and basic algorithms and data structures.

What You Will Learn

Use C# 6.0 asynchronous language features

Work with raw threads, synchronize threads, and coordinate their work

Develop your own asynchronous API with Task Parallel Library

Work effectively with a thread pool

Scale up your server application with I/O threads

Parallelize your LINQ queries with PLINQ

Use common concurrent collections

Apply different parallel programming patterns

Use Reactive Extensions to run asynchronous operations and manage their options

In Detail

Multi-core processors are synonymous with computing speed and power in today's world, which is why multithreading has become a key concern for C# developers. Multithreaded code helps you create effective, scalable, and responsive applications.

This is an easy-to-follow guide that will show you difficult programming problems in context. You will learn how to solve them with practical, hands-on, recipes. With these recipes, you'll be able to start creating your own scalable and reliable multithreaded applications. Starting from learning what a thread is, we guide you through the basics and then move on to more advanced concepts such as task parallel libraries, C# asynchronous functions, and much more.

Rewritten to the latest C# specification, C# 6, and updated with new and modern recipes to help you make the most of the hardware you have available, this book will help you push the boundaries of what you thought possible in C#.

Style and approach

This is an easy-to-follow guide full of hands-on examples of real-world multithreading tasks. Each topic is explained and placed in context, and for the more inquisitive, there are also more in-depth details of the concepts used.

Kom igång med den här boken idag för 0 kr

  • Få full tillgång till alla böcker i appen under provperioden
  • Ingen bindningstid, avsluta när du vill
Prova gratis nu
Mer än 52 000 personer har gett Nextory 5 stjärnor i App Store och på Google Play.

Andra läsare gillade också

Hoppa över listan
  1. Programming Windows Workflow Foundation: Practical WF Techniques and Examples using XAML and C# : Programming Windows Workflow Foundation: Practical WF Techniques and Examples using XAML and C#

    Kenneth Scott Allen

  2. ASP.NET Core 2 High Performance : Learn the secrets of developing high performance web applications using C# and ASP.NET Core 2 on Windows, Mac, and Linux

    James Singleton

  3. High-Performance Programming in C# and .NET : Understand the nuts and bolts of developing robust, faster, and resilient applications in C# 10.0 and .NET 6

    Jason Alls

  4. Hands-On Parallel Programming with C# 8 and .NET Core 3 : Build solid enterprise software using task parallelism and multithreading

    Shakti Tanwar

  5. Learn WinUI 3 : Leverage WinUI and the Windows App SDK to create modern Windows applications with C# and XAML

    Alvin Ashcraft

  6. C# 6 and .NET Core 1.0: Modern Cross-Platform Development

    Mark J. Price

  7. Mastering Minimal APIs in ASP.NET Core : Build, test, and prototype web APIs quickly using .NET and C#

    Emanuele Bartolesi, Andrea Tosato, Marco Minerva

  8. C# 7 and .NET Core 2.0 High Performance : Build highly performant, multi-threaded, and concurrent applications using C# 7 and .NET Core 2.0

    Ovais Mehboob Ahmed Khan

  9. Beginning C# 7 Hands-On – Advanced Language Features : Learn the advanced-level features of C# 7 using Visual Studio 2017

    Tom Owsiak

  10. Building Microservices with .NET Core 2.0 - Second Edition : Transitioning monolithic architectures using microservices with .NET Core 2.0 using C# 7.0

    Gaurav Aroraa

  11. C# 2008 and 2005 Threaded Programming : Beginner's Guide

    Hillar Gaston C.

  12. Hands-On Microservices with C# 8 and .NET Core 3 : Refactor your monolith architecture into microservices using Azure, 3rd Edition

    Gaurav Aroraa, Ed Price