Udemy
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
Development
Web Development Data Science Mobile Development Programming Languages Game Development Database Design & Development Software Testing Software Engineering Development Tools No-Code Development
Business
Entrepreneurship Communications Management Sales Business Strategy Operations Project Management Business Law Business Analytics & Intelligence Human Resources Industry E-Commerce Media Real Estate Other Business
Finance & Accounting
Accounting & Bookkeeping Compliance Cryptocurrency & Blockchain Economics Finance Finance Cert & Exam Prep Financial Modeling & Analysis Investing & Trading Money Management Tools Taxes Other Finance & Accounting
IT & Software
IT Certification Network & Security Hardware Operating Systems Other IT & Software
Office Productivity
Microsoft Apple Google SAP Oracle Other Office Productivity
Personal Development
Personal Transformation Personal Productivity Leadership Career Development Parenting & Relationships Happiness Esoteric Practices Religion & Spirituality Personal Brand Building Creativity Influence Self Esteem & Confidence Stress Management Memory & Study Skills Motivation Other Personal Development
Design
Web Design Graphic Design & Illustration Design Tools User Experience Design Game Design Design Thinking 3D & Animation Fashion Design Architectural Design Interior Design Other Design
Marketing
Digital Marketing Search Engine Optimization Social Media Marketing Branding Marketing Fundamentals Marketing Analytics & Automation Public Relations Advertising Video & Mobile Marketing Content Marketing Growth Hacking Affiliate Marketing Product Marketing Other Marketing
Lifestyle
Arts & Crafts Beauty & Makeup Esoteric Practices Food & Beverage Gaming Home Improvement Pet Care & Training Travel Other Lifestyle
Photography & Video
Digital Photography Photography Portrait Photography Photography Tools Commercial Photography Video Design Other Photography & Video
Health & Fitness
Fitness General Health Sports Nutrition Yoga Mental Health Dieting Self Defense Safety & First Aid Dance Meditation Other Health & Fitness
Music
Instruments Music Production Music Fundamentals Vocal Music Techniques Music Software Other Music
Teaching & Academics
Engineering Humanities Math Science Online Education Social Science Language Teacher Training Test Prep Other Teaching & Academics
AWS Certification Microsoft Certification AWS Certified Solutions Architect - Associate AWS Certified Cloud Practitioner CompTIA A+ Cisco CCNA Amazon AWS CompTIA Security+ AWS Certified Developer - Associate
Graphic Design Photoshop Adobe Illustrator Drawing Digital Painting InDesign Character Design Canva Figure Drawing
Life Coach Training Neuro-Linguistic Programming Mindfulness Personal Development Meditation Personal Transformation Life Purpose Coaching Neuroscience
Web Development JavaScript React CSS Angular PHP WordPress Node.Js Python
Google Flutter Android Development iOS Development Swift React Native Dart Programming Language Mobile Development Kotlin SwiftUI
Digital Marketing Google Ads (Adwords) Social Media Marketing Google Ads (AdWords) Certification Marketing Strategy Internet Marketing YouTube Marketing Email Marketing Retargeting
SQL Microsoft Power BI Tableau Business Analysis Business Intelligence MySQL Data Analysis Data Modeling Big Data
Business Fundamentals Entrepreneurship Fundamentals Business Strategy Online Business Business Plan Startup Freelancing Blogging Home Business
Unity Game Development Fundamentals Unreal Engine C# 3D Game Development C++ 2D Game Development Unreal Engine Blueprints Blender
30-Day Money-Back Guarantee

This course includes:

  • 3 hours on-demand video
  • 1 article
  • 7 downloadable resources
  • 1 coding exercise
  • Full lifetime access
  • Access on mobile and TV
Development Programming Languages C#

Write Asynchronous C# Code With Tasks and PLINQ

A comprehensive course teaching you how to write asynchronous C# code with the Task Parallel Library and PLINQ.
Rating: 4.5 out of 54.5 (512 ratings)
4,359 students
Created by Mark Farragher
Last updated 9/2019
English
English [Auto]
30-Day Money-Back Guarantee

What you'll learn

  • Learn how to write robust asynchronous C# code
  • Master the fundamentals of multi-threaded code
  • Learn how to use Threads
  • Learn how to use the Task class
  • Use a Task network to implement MapReduce
  • Parallelise any LINQ query with PLINQ
  • Learn the difference between Tasks and PLINQ
  • How to create Task continuations
  • ... and much more!
Curated for the Udemy for Business collection

Course content

5 sections • 28 lectures • 3h 13m total length

  • Preview07:02
  • Preview03:50
  • Preview06:17
  • Preview03:19
  • Background Info - About Me
    01:14

  • Section Introduction
    01:53
  • How To Start A Thread
    08:52
  • Race Conditions
    03:43
  • Preview07:55
  • The Lock Statement
    10:54
  • Thread Synchronisation With AutoResetEvents
    14:30
  • Section Recap
    04:16
  • Multi-Threaded Code Fundamentals
    5 questions

  • Section Introduction
    01:49
  • Preview11:57
  • Working With Tasks
    12:19
  • Initialising And Cancelling Tasks
    06:54
  • Parent And Child Tasks
    14:35
  • Task Continuations
    12:37
  • When Should You Use Tasks?
    08:10
  • Convert a sentence to pig latin
    1 question
  • Section Recap
    05:10
  • Working With Tasks
    6 questions

  • Section Intro
    01:57
  • When Should You Use PLINQ?
    07:21
  • Preview12:00
  • PLINQ And Item Ordering
    06:22
  • Limitations Of PLINQ
    06:44
  • Section Recap
    04:24
  • Using Parallel LINQ
    4 questions

  • Course Recap
    02:57
  • Bonus Lecture
    04:55

Requirements

  • You need a Windows, Mac or Linux laptop with Microsoft Visual Studio, Xamarin Studio or Monodevelop
  • You should be a beginner, intermediate, or advanced C# developer
  • That's it!

Description

Last updated: November 22, 2017 - added new promo video

Today we have beautiful libraries for writing multi-threaded C#, and there is simply no excuse for writing bad asynchronous code. In this course I will teach you how to write rock-solid code using Tasks and Parallel LINQ that works perfectly on your first try.

I wrote a multi-threaded conversion utility a year ago that successfully migrated 100,000 documents from SharePoint 2010 to SharePoint 2013. The program worked flawlessly the first time because I used PLINQ.

Sound good?

Writing multi-threaded code by hand is hard. I’ll prove it to you by showing you some code that exchanges data between two threads. You will be surprised how difficult it is to do this reliably.

But then I’ll show you how trivially easy it is to write asynchronous C# code using the Task Parallel Library and Parallel LINQ. These amazing frameworks allow anyone to write robust multi-threaded code that can take a beating.

By the end of the course you will be fluent in both the Tasks Parallel Library and Parallel LINQ.

Why should you take this course?

You should take this course if you are a beginner or intermediate C# developer and want to take your skills to the next level. Working with Tasks and Parallel LINQ might sound complicated, but all of my lectures are very easy to follow, and I explain all topics with clear code and many instructive diagrams. You'll have no trouble following along.

Or maybe you're working on a critical asynchronous section of C# code in a lage project, and need to make sure your code scales reliably over multiple CPU cores? The tips and tricks in this course will help you immensely.

Or maybe you're preparing for a C# related job interview? This course will give you an excellent foundation to answer any asynchronous programming questions they might throw at you.

30 day money-back guarantee

This course comes with an unconditional, Udemy backed, 30-day money-back guarantee. If you are dissatisfied with the course for any reason, simply request a refund and get your full purchase amount back, no questions asked.

Who this course is for:

  • Beginner, intermediate, and advanced C# programmers who want to learn about the Task Parallel Library and Parallel LINQ
  • Developers who are about to take a job interview and need to prepare for asynchronous code questions
  • Professionals who are writing a section of asynchronous code in a large C# project

Featured review

Mehmet Recep YILDIZ
Mehmet Recep YILDIZ
47 courses
15 reviews
Rating: 5.0 out of 5a year ago
The instructor has in-depth knowledge of the Multithreading programming. I have used multithreading a lot of times before. But still, I've learned lots of things from this course. I highly recommended it to everyone. The only downside is slow talking. I solved it by watching on speed 1.25 ;) Thank you for the course :)

Instructor

Mark Farragher
Microsoft Certified Trainer
Mark Farragher
  • 4.4 Instructor Rating
  • 8,100 Reviews
  • 38,616 Students
  • 12 Courses

Mark Farragher is a blogger, investor, serial entrepreneur, and the author of 11 successful IT courses on Udemy and other marketplaces. His career spans over two decades during which Mark has been a Founder twice and CTO three times, and has launched two lean startups in The Netherlands.

Mark became a Microsoft Certified Trainer in 2005 and started training classes in .NET development, web design, and Microsoft back-office servers. Today he uses his extensive knowledge of IT to help CTO’s, architects, and other tech professionals with their leadership, communication, and technical skills.

Mark has MCSA and MCSD certifications from Microsoft and is a certified Microsoft Trainer and Scrum master. He speaks fluent English, Dutch, and German.

  • Udemy for Business
  • Teach on Udemy
  • Get the app
  • About us
  • Contact us
  • Careers
  • Blog
  • Help and Support
  • Affiliate
  • Terms
  • Privacy policy
  • Cookie settings
  • Sitemap
  • Featured courses
Udemy
© 2021 Udemy, Inc.