وب سایت تخصصی شرکت فرین
دسته بندی دوره ها

C# Concurrent Collections

سرفصل های دوره

Learn to use concurrent collections effectively to store data in a multithreaded environment, keeping the code efficient and avoiding data corruption and race conditions.


1. Course Overview
  • 1. Course Overview

  • 02. Collections and Atomic Operations
  • 01. Version Check
  • 02. Overview
  • 03. Introducing the Code
  • 04. Adding Concurrency
  • 05. Fixing the Code with ConcurrentQueueT
  • 06. Inconsistent Results
  • 07. Explaining the Thread Timing Inconsistency
  • 08. Why Did QueueT.Enqueue() Fail
  • 09. Atomic Operations
  • 10. Summary

  • 03. From Dictionary to ConcurrentDictionary
  • 01. Overview
  • 02. Introducing the SellShirts Demo
  • 03. Storing Shirts in an ImmutableArray
  • 04. The Stock Controller and the Dictionary
  • 05. Generating Random Numbers
  • 06. The Main() Method
  • 07. Simulating Serving Customers
  • 08. Adding Concurrency and ConcurrentDictionary
  • 09. The Indexer vs. TryGetValue()
  • 10. Fixing the Code to Allow for Failure
  • 11. Remove() vs. TryRemove()
  • 12. Concurrent Collection State Can Be Uncertain
  • 13. Summary

  • 04. ConcurrentDictionary - Avoiding Race Conditions
  • 01. Overview
  • 02. Introducing the BuyAndSell Demo
  • 03. Storing the Stock in a Dictionary
  • 04. Updating a Standard Dictionary
  • 05. Summing Values with LINQ and Checking for Errors
  • 06. Modelling Serving a Customer
  • 07. Adding Concurrency
  • 08. Race Conditions and Data Corruption
  • 09. Updating Atomically with TryUpdate()
  • 10. Introducing AddOrUpdate()
  • 11. Interlocked.Add()
  • 12. Protecting against Race Conditions
  • 13. Lambdas to Conditionally Update the Dictionary
  • 14. Solving the Update Problem with a Closure
  • 15. GetOrAdd() to Read the Dictionary
  • 16. Summary

  • 5. The Producer-consumer Collections - Queues, Stacks, and Bags
  • 1. Overview
  • 2. Adding the Logging Tasks
  • 3. Calculating Commissions
  • 4. Enqueueing to the Concurrent Queue
  • 5. Consuming the Queue - The Problem of Polling
  • 6. ConcurrentStackT
  • 7. ConcurrentBagT
  • 8. The IProducerConsumerCollectionT Interface
  • 9. Summary

  • 6. Avoiding Polling with the BlockingCollection
  • 1. Overview
  • 2. Understanding BlockingCollectionT
  • 3. How BlockingCollectionT Avoids Polling
  • 4. The Consuming Enumerable
  • 5. Enumerating Directly Wont Work
  • 6. Summary

  • 07. Good and Bad Coding Practices with Concurrent Collections
  • 01. Overview
  • 02. Concurrent Collections and Performance
  • 03. The Dictionary Benchmark Demo
  • 04. Benchmarking with Multiple Threads
  • 05. Running the Benchmark
  • 06. Use Shared State Sparingly
  • 07. Using ConcurrentDictionary Correctly
  • 08. The Problem with Count
  • 09. Aggregate State
  • 10. Good Practices for State
  • 11. Summary

  • 8. Enumerating Concurrent Collections
  • 1. Overview
  • 2. Enumerating a Standard Dictionary
  • 3. Enumerating a Concurrent Dictionary
  • 4. Forcing a Snapshot Enumeration
  • 5. Snapshot Pros and Cons
  • 6. Module Summary
  • 7. Course Summary
  • 8. T-shirt Models - Thank You!
  • 9. Your Challenge!
  • 139,000 تومان
    بیش از یک محصول به صورت دانلودی میخواهید؟ محصول را به سبد خرید اضافه کنید.
    خرید دانلودی فوری

    در این روش نیاز به افزودن محصول به سبد خرید و تکمیل اطلاعات نیست و شما پس از وارد کردن ایمیل خود و طی کردن مراحل پرداخت لینک های دریافت محصولات را در ایمیل خود دریافت خواهید کرد.

    ایمیل شما:
    تولید کننده:
    مدرس:
    شناسه: 42819
    حجم: 497 مگابایت
    مدت زمان: 163 دقیقه
    تاریخ انتشار: ۲۹ دی ۱۴۰۳
    طراحی سایت و خدمات سئو

    139,000 تومان
    افزودن به سبد خرید