Accessing Shared Data and Simplifying Asynchronous Code

  • 9 Videos | 48m 51s
  • Earns a Badge
In asynchronous programming, it’s helpful to understand how to access shared data and simplify your code. In this course, you’ll discover the various ways that parallelism can be added to an application by accessing shared data from multiple threads and simplifying asynchronous code with async and await. You’ll begin by exploring multithreaded access to data, how to make an entire class thread-safe, and the Monitor.Enter and Monitor.Exit methods. Then you’ll learn how to work with exceptions and timeouts when working with threads, how to improve performance, and how the Mutex class can be used to grab multiple locks at the same time. Finally, you’ll discover how async and await support asynchronous programming and how they can be used to implement asynchrony in applications. This course was originally created by Global Knowledge (GK). 

WHAT YOU WILL LEARN

  • describe multithreaded access to data
    discuss how to make an entire class thread-safe
    describe the Monitor.Enter and Monitor.Exit methods and how to define code that should be limited to one thread at a time
    discuss how to work with exceptions and timeouts when working with threads
    describe how to improve performance by using ReaderWriterLockSlim
  • discuss how the Mutex class can be used to grab multiple locks at the same time
    describe how the C# features async and await support asynchronous programming
    discuss how async and await can be used to implement asynchrony in an application
    describe async and await as alternatives to using Task.ContinueWith

IN THIS COURSE

  • Playable
    1. 
    Multithreaded Data Access
    4m 42s
    UP NEXT
  • Playable
    2. 
    Making a Class Thread-Safe
    5m 31s
  • Locked
    3. 
    Monitor.Enter and Monitor.Exit
    5m 1s
  • Locked
    4. 
    Exceptions and Timeouts
    4m 3s
  • Locked
    5. 
    Improving Performance
    3m 29s
  • Locked
    6. 
    Grabbing Multiple Locks with Mutex
    7m 47s
  • Locked
    7. 
    Async and Await in C# 5
    8m 1s
  • Locked
    8. 
    Using Async and Await
    7m 39s
  • Locked
    9. 
    Callbacks vs. Async/Await
    2m 39s

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

Skillsoft is providing you the opportunity to earn a digital badge upon successful completion of this course, which can be shared on any social network or business platform

Digital badges are yours to keep, forever.