Cantitate/Preț
Produs

C# Concurrency

Autor Nir Dobovizki
en Limba Engleză Paperback – 25 feb 2025

Ne-a atras atenția abordarea practică a capitolului dedicat modului în care compilatorul rescrie codul tău atunci când folosești cuvintele cheie async și await. Această perspectivă „sub capotă” nu este doar teoretică; ea devine fundamentul pentru a înțelege de ce apar anumite blocaje și cum pot fi ele evitate prin tehnici corecte de programare asincronă. Nir Dobovizki, un veteran cu trei decenii de experiență, reușește să demistifice primitivele .NET, oferind soluții pentru scrierea unui cod multithreaded care să aducă îmbunătățiri reale de performanță, nu doar complexitate adăugată. C# Concurrency explorează în detaliu gestionarea sarcinilor în fundal, anularea acestora și utilizarea noilor structuri precum IAsyncEnumerable pentru generarea asincronă de colecții. Reținem accentul pus pe controlul precis al thread-ului de execuție, un aspect critic pentru aplicațiile moderne care trebuie să rămână responsive. Ca și Stephen Cleary în Concurrency in C# Cookbook, autorul distilează experiență reală în principii acționabile, însă Nir Dobovizki pune un accent sporit pe arhitectura internă și pe momentele în care este mai înțelept să NU folosim tehnici de concurență. Structura este una progresivă: după ce stabilește bazele și capcanele clasice (deadlocks, race conditions), volumul trece la scenarii avansate de procesare a secvențelor de date și gestiune a excepțiilor. Publicată de Manning Publications, lucrarea se distinge prin claritatea cu care explică mecanismele de sincronizare și prin exemplele de cod care pot fi integrate direct în proiecte de producție.

Citește tot Restrânge

Preț: 36122 lei

Preț vechi: 45153 lei
-20%

Puncte Express: 542

Carte disponibilă

Livrare economică 08-22 mai
Livrare express 24-30 aprilie pentru 13337 lei


Specificații

ISBN-13: 9781633438651
ISBN-10: 1633438651
Pagini: 248
Dimensiuni: 184 x 233 x 14 mm
Greutate: 0.43 kg
Editura: Manning Publications

De ce să citești această carte

Recomandăm această carte programatorilor C# cu experiență care doresc să stăpânească execuția paralelă fără a introduce bug-uri greu de depistat. Cititorul câștigă o înțelegere profundă a modului în care .NET gestionează asincronismul, învățând să utilizeze corect colecțiile thread-safe și să optimizeze performanța aplicațiilor prin evitarea blocajelor de execuție. Este un ghid esențial pentru a trece de la utilizarea intuitivă a async/await la o arhitectură software robustă.


Descriere

Supercharge your applications with the ultimate guide to asynchronous and multithreaded programming in C#! C# Concurrency teaches you how to write effective multithreaded and asynchronous software in C#. Practical techniques, real-world examples, and useful code samples cut through the confusion around async/await and help you write rapid, reliable, and bug-free code. In C# Concurrency: Asynchronous and Multithreaded Programming you’ll learn how to: • Take full advantage of async/await • Write bug-free multithreaded code every time • Create multithreaded code that delivers real performance improvements • Grok C# and .NET multithreading and asynchronous primitives • Know when to use concurrency techniques—and when not to use them! In C# Concurrency Nir Dobovizki, a seasoned C# veteran with over 30 years of high-performance programming experience, shares his deep knowledge and expert techniques. Say goodbye to frustrating pitfalls and impossible-to-find bugs that slow down your applications. Nir's careful approach will teach you how to navigate these challenges with ease, allowing you to achieve lightning-fast performance like never before! Purchase of the print book includes a free eBook in PDF and ePub formats from Manning Publications. About the technology Asynchronous and multithreaded programs can perform multiple tasks simultaneously without losing speed or reliability. But getting concurrency right can challenge even experienced developers. This practical book teaches you to deliver concurrent C# apps that are lighting fast and free of the deadlocks and other synchronization issues that undermine performance and take forever to find. About the book C# Concurrency equips programmers with a comprehensive understanding of multithreading and asynchronous programming, focusing on the practical use of the C# async-await feature to simplify asynchronous tasks. It teaches how to avoid common pitfalls, addresses classic multithreading issues like deadlocks and race conditions, and advanced topics such as controlling thread of execution and using thread-safe collections. What's inside • .NET multithreading and asynchronous primitives • When to use concurrency techniques—and when not to! • Confidently use async/await About the reader For experienced C# programmers. No knowledge of asynchro- nous programming required. About the author Nir Dobovizki is a senior software architect and consultant who has worked on concurrent and asynchronous systems since the late 90s. Table of Contents 1 Asynchronous programming and multithreading 2 The compiler rewrites your code 3 The async and await keywords 4 Multithreading basics 5 async/await and multithreading 6 When to use async/await 7 Classic multithreading pitfalls and how to avoid them Part 2 8 Processing a sequence of items in the background 9 Canceling background tasks 10 Await your own events 11 Controlling on which thread your asynchronous code runs 12 Exceptions and async/await 13 Thread-safe collections 14 Generating collections asynchronously/await foreach and IAsyncEnumerable