What's new
  • The default language of any content posted is English.
    Do not create multi-accounts, you will be blocked! For more information about rules, limits, and more, visit the Help page.
    Found a dead link? Use the report button!

Task Programming in C# and .NET

ozgursevgi

Member
Messages
9
Reactions
1
Publication Year: 2025
Author: Sarcar V.

Publisher: Apress
ISBN: 979-8-8688-1279-8
Language: English

Format: PDF/EPUB
Quality: Publisher's Layout or Text (eBook)
Interactive Table of Contents: Yes
Number of Pages: 183

Description:
At a high level, to understand asynchronous programming, you need to be familiar with task programming, efficient use of the async and await keywords, and a few more important topics. However, task programming is the first major step towards modern-day asynchronous programming. This book tries to simplify the topic with simple examples, Q&A sessions, and exercises.
The book starts with an introduction to asynchronous programming and covers task creation and execution. Next, you will learn how to work with continuing and nested tasks. Next, it demonstrates exception handling with different scenarios. Towards the end, you will understand how to manage task cancellations through examples and case studies. After reading this book, you can write efficient codes for multithreaded, asynchronous, and parallel development in C#.
With the availability of multicore computers, asynchronous programming and parallel programming are becoming increasingly important. Why not? It is essential for building highly responsive software. This is why playing with threads in a multithreaded environment is inevitable. Undoubtedly, it is hard, but in earlier days, it was harder. To simplify the overall coding experience, starting from the .NET Framework 4.0, Microsoft introduced Task Parallel Library (TPL) which was based on the concept of tasks. Later, in C#5, we saw the revolutionary introduction of the async and await keywords. Using them, we started passing the heavy work(s) to the compiler. However, you need to remember that a typical async method normally returns a task (in programming terms, a Task or a Task TResult). So, there is no wonder that task programming became the modern-day foundation for asynchronous programming.
What You Will Learn:
- Dig deep into task programming which is an essential part of the concurrent and multithreaded developments.
- Learn modern-day C# features that are foundations of asynchronous programming
- How the advanced features in C# such as delegates, lambdas, generics, etc. can be used in concurrency
 

Attachments

  • Sarcar V. - Task Programming in C# and .NET - 2025.zip
    3.5 MB · Views: 1
Reacted by:
Top