Multithreading with C# Cookbook, 2/e (C# 多執行緒食譜(第二版))

Eugene Agafonov

買這商品的人也買了...

相關主題

商品描述

Key Features

  • 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#

Book Description

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#.

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

About the Author

Eugene Agafonov leads the development department at ABBYY and lives in Moscow. He has over 15 years of professional experience in software development, and he started working with C# when it was in beta version. He is a Microsoft MVP in ASP.NET since 2006, and he often speaks at local software development conferences, such as DevCon Russia, about cutting-edge technologies in modern web and server-side application development. His main professional interests are cloud-based software architecture, scalability, and reliability. Eugene is a huge fan of football and plays the guitar with a local rock band. You can reach him at his personal blog, eugeneagafonov.com, or find him on Twitter at @eugene_agafonov.

ABBYY is a global leader in the development of document recognition, content capture, and language-based technologies and solutions that are integrated across the entire information life cycle.

He is the author of Multhreading in C# 5.0 Cookbook and Mastering C# Concurrency by Packt Publishing.

Table of Contents

  1. Threading Basics
  2. Thread Synchronization
  3. Using a Thread Pool
  4. Using the Task Parallel Library
  5. Using C# 6.0
  6. Using Concurrent Collections
  7. Using PLINQ
  8. Reactive Extensions
  9. Using Asynchronous I/O
  10. Parallel Programming Patterns
  11. There's More

商品描述(中文翻譯)

主要特點


  • 重新撰寫並更新以利用最新的 C# 6 功能

  • 透過實際的程式碼示例學習多執行緒、非同步和平行程式設計

  • 使用這些範例來建立快速、可擴展和可靠的 C# 應用程式

書籍描述

多核心處理器在當今世界中代表著計算速度和功率,這就是為什麼多執行緒已成為 C# 開發人員的一個重要關注點。多執行緒的程式碼可以幫助您建立有效、可擴展和具有回應性的應用程式。

這是一本易於理解的指南,將以實際的範例將困難的程式設計問題放入情境中,並教您如何解決這些問題。透過這些範例,您將能夠開始建立自己可擴展和可靠的多執行緒應用程式。從學習什麼是執行緒開始,我們將引導您了解基礎知識,然後進一步介紹更高級的概念,例如任務平行程式庫、C# 非同步函數等等。

這本書已根據最新的 C# 6 規範重新撰寫,並提供了新的現代範例,以幫助您充分利用您所擁有的硬體,讓您在 C# 中突破您認為可能的界限。

您將學到什麼


  • 使用 C# 6.0 的非同步語言功能

  • 使用原始執行緒、同步執行緒並協調它們的工作

  • 使用任務平行程式庫開發自己的非同步 API

  • 有效地使用執行緒池

  • 使用 I/O 執行緒擴展您的伺服器應用程式

  • 使用 PLINQ 並行化您的 LINQ 查詢

  • 使用常見的並行集合

  • 應用不同的平行程式設計模式

  • 使用反應式擴展執行非同步操作並管理其選項

關於作者

Eugene Agafonov 現任 ABBYY 開發部門主管,居住在莫斯科。他在軟體開發領域擁有超過 15 年的專業經驗,並在 C# 還處於測試版本時就開始使用。他是自 2006 年以來的 ASP.NET 微軟 MVP,並經常在當地的軟體開發會議上發表演講,介紹現代網頁和伺服器端應用程式開發的尖端技術。他主要的專業興趣是基於雲端的軟體架構、可擴展性和可靠性。Eugene 是足球的狂熱愛好者,並在當地的搖滾樂團中彈奏吉他。您可以在他的個人部落格 eugeneagafonov.com 聯絡他,或在 Twitter 上找到他的帳號 @eugene_agafonov。

ABBYY 是全球領先的文件識別、內容捕獲和基於語言的技術和解決方案開發商,其產品和解決方案適用於整個信息生命週期。

他是 Packt Publishing 出版的《C# 5.0 多執行緒烹飪書》和《精通 C# 並行程式設計》的作者。

目錄


  1. 執行緒基礎

  2. 執行緒同步

  3. 使用執行緒池

  4. 使用任務平行程式庫

  5. 使用 C# 6.0

  6. 使用並行集合

  7. 使用 PLINQ

  8. 反應式擴展

  9. 使用非同步 I/O

  10. 平行程式設計模式

  11. 更多內容