• Complain

Stephen Cleary - Concurrency in C# Cookbook: Asynchronous, Parallel, and Multithreaded Programming

Here you can read online Stephen Cleary - Concurrency in C# Cookbook: Asynchronous, Parallel, and Multithreaded Programming full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2019, publisher: OReilly Media, Inc., genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Stephen Cleary Concurrency in C# Cookbook: Asynchronous, Parallel, and Multithreaded Programming
  • Book:
    Concurrency in C# Cookbook: Asynchronous, Parallel, and Multithreaded Programming
  • Author:
  • Publisher:
    OReilly Media, Inc.
  • Genre:
  • Year:
    2019
  • Rating:
    3 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 60
    • 1
    • 2
    • 3
    • 4
    • 5

Concurrency in C# Cookbook: Asynchronous, Parallel, and Multithreaded Programming: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Concurrency in C# Cookbook: Asynchronous, Parallel, and Multithreaded Programming" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

If youre one of many developers still uncertain about concurrent and multithreaded development, this practical cookbook will change your mind. With more than 85 code-rich recipes in this updated second edition, author Stephen Cleary demonstrates parallel processing and asynchronous programming techniques using libraries and language features in .NET and C# 8.0. Concurrency is now more common in responsive and scalable application development, but its still extremely difficult to code. The detailed solutions in this cookbook show you how modern tools raise the level of abstraction, making concurrency much easier than before. Complete with ready-to-use code and discussions about how and why solutions work, these recipes help you: Get up to speed on concurrency and async and parallel programming Use async and await for asynchronous operations Enhance your code with asynchronous streams Explore parallel programming with .NETs Task Parallel Library Create dataflow pipelines with .NETs TPL Dataflow library Understand the capabilities that System.Reactive builds on top of LINQ Utilize threadsafe and immutable collections Learn how to conduct unit testing with concurrent code Make the thread pool work for you Enable clean, cooperative cancellation Examine scenarios for combining concurrent approaches Dive into asynchronous-friendly object-oriented programming Recognize and write adapters for code using older asynchronous styles

Stephen Cleary: author's other books


Who wrote Concurrency in C# Cookbook: Asynchronous, Parallel, and Multithreaded Programming? Find out the surname, the name of the author of the book and a list of all author's works by series.

Concurrency in C# Cookbook: Asynchronous, Parallel, and Multithreaded Programming — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Concurrency in C# Cookbook: Asynchronous, Parallel, and Multithreaded Programming" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Praise for Concurrency in C# Cookbook, Second Edition

The next big thing in computing is making massive parallelismaccessible to mere mortals. Developers have more power available to usthan ever before, but expressing concurrency is still a challenge formany. Stephen turns his attention to this problem, helping us allbetter understand concurrency, threading, reactive programming models,parallelism, and much more in an easy-to-read but complete reference.

Scott Hanselman, Principal Program Manager, ASP.NET and Azure Web Tools, Microsoft

The breadth of techniques covered and the cookbook format make thisthe ideal reference book for modern .NET concurrency.

Jon Skeet, Senior Software Engineer at Google

Stephen Cleary has established himself as a key expert on asynchronyand parallelism in C#. This book clearly and concisely conveys themost important points and principles developers need to understand toget started and be successful with these technologies.

Stephen Toub, Principal Architect, Microsoft

Concurrency in C# Cookbook, Second Edition

By Stephen Cleary

Copyright 2019 Stephen Cleary. All rights reserved.

Printed in the United States of America.

Published by OReilly Media, Inc. , 1005 Gravenstein Highway North, Sebastopol, CA 95472.

OReilly books may be purchased for educational, business, or sales promotional use. Online editions are also available for most titles (http://oreilly.com). For more information, contact our corporate/institutional sales department: 800-998-9938 or corporate@oreilly.com .

  • Acquisitions Editor: Chris Guzikowski
  • Development Editor: Corbin Collins
  • Production Editor: Deb Baker
  • Copyeditor: Amanda Kersey
  • Proofreader: Sonia Saruba
  • Indexer: Angela Howard
  • Interior Designer: David Futato
  • Cover Designer: Randy Comer
  • Illustrator: Rebecca Demarest
  • June 2014: First Edition
  • August 2019: Second Edition
Revision History for the Second Edition
  • 2019-08-20: First release

See http://oreilly.com/catalog/errata.csp?isbn=9781492054504 for release details.

The OReilly logo is a registered trademark of OReilly Media, Inc. Concurrency in C# Cookbook, Second Edition, the cover image, and related trade dress are trademarks of OReilly Media, Inc.

The views expressed in this work are those of the author, and do not represent the publishers views. While the publisher and the author have used good faith efforts to ensure that the information and instructions contained in this work are accurate, the publisher and the author disclaim all responsibility for errors or omissions, including without limitation responsibility for damages resulting from the use of or reliance on this work. Use of the information and instructions contained in this work is at your own risk. If any code samples or other technology this work contains or describes is subject to open source licenses or the intellectual property rights of others, it is your responsibility to ensure that your use thereof complies with such licenses and/or rights.

978-1-492-05450-4

[LSI]

Preface

I think the animal on this cover, a common palm civet, is applicable to the subject of this book. I knew nothing about this animal until I saw the cover, so I looked it up. Common palm civets are considered pests because they defecate all over attics and make loud noises fighting with each other at the most inopportune times. Their anal scent glands emit a nauseating secretion. They have an endangered species rating of Least Concern, which is apparently the politically correct way of saying, Kill as many of these as you want; no one will miss them. Common palm civets enjoy eating coffee cherries, and they pass the coffee beans through. Kopi luwak, one of the most expensive coffees in the world, is made from the coffee beans extracted from civet excretions. According to the Specialty Coffee Association of America, It just tastes bad.

This makes the common palm civet a perfect mascot for concurrent and multithreaded development. To the uninitiated, concurrency and multithreading are undesirable. They make well-behaved code act up in the most horrendous ways. Race conditions and whatnot cause loud crashes (always, it seems, either in production or during a demo). Some have gone so far as to declare threads are evil and avoid concurrency completely. There are a handful of developers who have developed a taste for concurrency and use it without fear; but most developers have been burned in the past by concurrency, and that experience has left a bad taste in their mouth.

However, for modern applications, concurrency is quickly becoming a requirement. Users these days expect fully responsive interfaces, and server applications are having to scale to unprecedented levels. Concurrency addresses both of these trends.

Fortunately, there are many modern libraries that make concurrency much easier! Parallel processing and asynchronous programming are no longer exclusively the domains of wizards. By raising the level of abstraction, these libraries make responsive and scalable application development a realistic goal for every developer. If you have been burned in the past, when concurrency was extremely difficult, then I encourage you to give it another try with modern tools. We can probably never call concurrency easy, but it sure isnt as hard as it used to be!

Who Should Read This Book

This book is written for developers who want to learn modern approaches to concurrency. I do assume that youve got a fair amount of .NET experience, including an understanding of generic collections, enumerables, and LINQ. I do not expect that you have any multithreading or asynchronous programming knowledge. If you do have some experience in those areas, you may still find this book helpful because it introduces newer libraries that are safer and easier to use.

Concurrency is useful for any kind of application. It doesnt matter whether you work on desktop, mobile, or server applications; these days concurrency is practically a requirement across the board. You can use the recipes in this book to make user interfaces more responsive and servers more scalable. We are already at the point where concurrency is ubiquitous, and understanding these techniques and their uses is essential knowledge for the professional developer.

Why I Wrote This Book

Early in my career, I learned multithreading the hard way. After a couple of years, I learned asynchronous programming the hard way. While those were both valuable experiences, I do wish that back then I had some of the tools and resources that are available today. In particular, the async and await support in modern .NET languages is pure gold.

However, if you look around today at books and other resources for learning concurrency, they almost all start by introducing the most low-level concepts. Theres excellent coverage of threads and serialization primitives, and the higher-level techniques are put off until later, if theyre covered at all. I believe this is for two reasons. First, many developers of concurrency, such as myself, did learn the low-level concepts first, slogging through the old-school techniques. Second, many books are years old and cover now-outdated techniques; as the newer techniques have become available, these books have been updated to include them, but have unfortunately placed them at the end.

I think thats backward. In fact, this book only covers modern approaches to concurrency. Thats not to say theres no value in understanding all the low-level concepts. When I went to college for programming, I had one class where I had to build a virtual CPU from a handful of gates, and another class that covered assembly programming. In my professional career, Ive never designed a CPU, and Ive only written a couple dozen lines of assembly, but my understanding of the fundamentals still helps me every day. Still, its best to start with the higher-level abstractions; my first programming class wasnt in assembly language.

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Concurrency in C# Cookbook: Asynchronous, Parallel, and Multithreaded Programming»

Look at similar books to Concurrency in C# Cookbook: Asynchronous, Parallel, and Multithreaded Programming. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Concurrency in C# Cookbook: Asynchronous, Parallel, and Multithreaded Programming»

Discussion, reviews of the book Concurrency in C# Cookbook: Asynchronous, Parallel, and Multithreaded Programming and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.