Jump to ratings and reviews
Rate this book

Асинхронное программирование в C# 5.0

Rate this book
Из этого краткого руководства вы узнаете, как механизм async в С# 5.0 позволяет упростить написание асинхронного кода. Помимо ясного введения в асинхронное программирование вообще, вы найдете углубленное описание работы этого конкретного механизма и ответ на вопрос, когда и зачем использовать его в собственных приложениях.
В книге рассматриваются следующие вопросы.
Как писать асинхронный код вручную и как механизм async скрывает неприглядные детали.
Новые способы повышения производительности серверного кода в приложениях ASP.NET .
Совместная работа async и WinRT в приложениях для Windows 8.
Смысл ключевого слова await в async-методах.
В каком потоке .NET исполняется асинхронный код в каждой точке программы.
Написание асинхронных API, согласованных с паттерном Task-based Asynchronous Pattern (ТАР).
Распараллеливание программ для задействования возможностей современных компьютеров.
Измерение производительности async-кода и сравнение с альтернативными подходами.
Книга рассчитана на опытных программистов на С#, но будет понятна и начинающим. Она изобилует примерами кода, который можно использовать в своих программах.

120 pages, Paperback

First published January 1, 2012

29 people are currently reading
79 people want to read

About the author

Alex Davies

49 books6 followers

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
69 (36%)
4 stars
94 (49%)
3 stars
21 (10%)
2 stars
5 (2%)
1 star
2 (1%)
Displaying 1 - 20 of 20 reviews
Profile Image for Ivan Ivanov.
27 reviews
April 20, 2020
If you don't have experience with async/await(like me), this is a great first book on the topic.

I've tried to start reading about async/await from "C# In Depth", but I had difficulties digesting the topic there. As a result I've bought "Async in C# 5.0" and now feel that I am ready to get back to "C# in Depth"

I think that the chapter on how the async code is transformed by the compiler could've been written better. Personally I like this explanation.

Also I didn't like the explanation about the SynchronizationContext. I think that this blog is doing better job at explaining it.
Profile Image for Axel Prieto.
35 reviews14 followers
June 29, 2019
If you already have an idea of C# async feature and been working with it for a while, you'll probably find this book a bit repetitive or boring at times. It does dive on some more advanced topics like decompiling async code to understand what the compiler is doing under the hood, so it's not exclusively for beginners though.

Personally I found it useful to get a more complete picture of this language in terms of asynchronous techniques.
Profile Image for Ieva Gr.
185 reviews34 followers
August 14, 2018
Quite perfect. Short, detailed and yet written in a way that is easy to grasp. Some things might be slightly outdated but it is definitely worth to read. Helps to get a mental picture on how async works.
Profile Image for Jon Ferguson.
16 reviews10 followers
December 14, 2020
A nice, short book covering a broad overview of how Async programming works in C#. A new version is out now, but this is still has good information for people who, like me, have used Async programming in the past but never really understood what is happening under the hood. A good book to have for reference in the future.
Profile Image for Mikhail Filippov.
3 reviews
May 14, 2018
Nice small book about async await.

Good book to review async await C# feature. Nice examples and some usefully tips and tricks. I like it book.
2 reviews
September 1, 2018
Clear and concise book, would recommend to anyone struggling with async's basics in C#.
Profile Image for Dana Goosen.
140 reviews2 followers
December 22, 2018
Okay, it contains simple intuitive examples of what is being explained. Liked it.
Profile Image for Rene Stein.
234 reviews36 followers
June 18, 2013
Asi nejlepší a určitě nejpodrobnější kniha o asynchronním kódu psaném v C# za pomoci klíčových slovech async/await.

Knihu ale potřebujete pouze tehdy, když:

1) Nečtete blog PFX teamu http://blogs.msdn.com/b/pfxteam/), kde jsou všechna témata v knize vyložena lépe a podrobněji - snad s výjimkou Actor modelu, který ale podle mě ani v knize není vysvětlen moc dobře. Prohlédl jsem si i projekt n-act (https://code.google.com/p/n-act/), jehož autor je shodný s autorem této knihy, a myslím si, že jde jen o letmé načrtnutí toho, jak by mohl Actor model dnes v C# fungovat za pomoci dynamické proxy a klíčových slov async/await.

2) Nejste nadšenci, kteří se od prvních beta verzí koukali do dekompilovaného kódu, abyste pochopili, jak kompilátor C# a s využitím jakých datových struktur generuje "continuations".

Předpokládám, že i tak je ale cílová skupina této velmi slušné knihy docela početná.:)
Profile Image for Kevin Garner.
18 reviews4 followers
August 10, 2015
This book was short and sweet (108 pages). It provides the big picture and goes into some specifics with clarity on how to write, test, and debug asynchronous code in a .NET 4.5+ environment. All in all, it is worth having around for reference. I read it from cover to cover in a short amount of time and plan to go back through and savor a bit more when time permits. I would not look to it as an end-all for your every concurrency programming need, as it is extremely brief.
Profile Image for Subramanian.
3 reviews
November 13, 2012
It explains the obscure art of async style of programming in C# 5.0, something that for a person who thinks synchronously is a huge mental shift.

But it lacks in hands on examples to understand, and at the end I felt like I crammed in too much new theory without practicing and feeling confident about it.
This entire review has been hidden because of spoilers.
9 reviews
February 8, 2022
It is a good read to get into the topic, but there are way too less examples. Overall the book is too thin and the chapters cover some topics very briefly. But It is a good start.
If you want to go deep into this with lots of explanations and examples go and get Pro Asynchronous Programming with .NET from Richard Blewett ands Andrew Clymer.
Profile Image for Sascha.
13 reviews1 follower
February 23, 2013
Contains just one topic (as its title says) but handles that very well. There's also a chapter that dives into some details of how async/await works.
49 reviews3 followers
May 27, 2013
Good quick book that goes into a lot of different examples and good technical detail (TLS, synchronization contexts, WinRT, etc.).
3 reviews
February 22, 2015
This is a very good book for the new async/await and task<> features in c#. Highly recommended
Profile Image for Jeff Patterson.
109 reviews5 followers
April 28, 2023
Excellent explanation of using Async / Await in C#. The book has aged only slightly and I didn't notice any areas that were outdated.
Profile Image for Jonathan Coello.
1 review
February 24, 2016
Great intro to async

Very good introduction to async. Short, easy to read book with good examples and some useful techniques and libraries to get the most out of async.
Displaying 1 - 20 of 20 reviews

Can't find what you're looking for?

Get help and learn more about the design.