Stephen Cleary

Concurrency in C# Cookbook

Notify me when the book’s added
To read this book, upload an EPUB or FB2 file to Bookmate. How do I upload a book?
  • esandrewhas quoted4 years ago
    IProgress and Progress types
  • esandrewhas quoted4 years ago
    new CancellationTokenSource(TimeSpan.FromSeconds(3));
  • esandrewhas quoted4 years ago
    For more information on System.Reactive, I recommend the excellent online book Introduction to Rx.
  • esandrewhas quoted4 years ago
    Tasks should neither be extremely short, nor extremely long.
    If your tasks are too short, then the overhead of breaking up the data into tasks and scheduling those tasks on the thread pool becomes significant. If your tasks are too long, then the thread pool cannot dynamically adjust its work balancing efficiently. It’s difficult to determine how short is too short and how long is too long; it really depends on the problem being solved and the approximate capabilities of the hardware
  • esandrewhas quoted4 years ago
    in general, parallel programming on the server would work against its built-in parallelism and therefore wouldn’t provide any real benefit
fb2epub
Drag & drop your files (not more than 5 at once)