- عنوان کتاب: Task Programming in C# and .NET – Modern Day Foundation for Asynchronous Programming
- نویسنده: Vaskaran Sarcar
- حوزه: برنامه نویسی .Net
- سال انتشار: 2022
- تعداد صفحه: 183
- زبان اصلی: انگلیسی
- نوع فایل: pdf
- حجم فایل: 2.43 مگابایت
با در دسترس بودن کامپیوترهای چند هستهای، برنامهنویسی ناهمزمان و برنامهنویسی موازی اهمیت فزایندهای پیدا میکنند. چرا که نه؟ این امر برای ساخت نرمافزارهای با واکنشپذیری بالا ضروری است. به همین دلیل است که کار با نخها در یک محیط چندنخی اجتنابناپذیر است. بدون شک، این کار سخت است، اما در گذشته سختتر بود. برای سادهسازی تجربه کلی کدنویسی، با شروع از .NET Framework 4.0، مایکروسافت کتابخانه موازی وظایف (TPL) را معرفی کرد که مبتنی بر مفهوم وظایف بود. بعداً، در C#5، شاهد معرفی انقلابی کلمات کلیدی async و await بودیم. با استفاده از آنها، شروع به ارسال کارهای سنگین به کامپایلر کردیم. با این حال، باید به خاطر داشته باشید که یک روش async معمولی معمولاً یک وظیفه (در اصطلاحات برنامهنویسی، یک Task یا یک Task<TResult>) را برمیگرداند. بنابراین، جای تعجب نیست که برنامهنویسی وظیفه به پایه و اساس امروزی برنامهنویسی ناهمزمان تبدیل شد. علاوه بر این، الگوهایی که قبلاً برای مقابله با برنامهنویسی ناهمزمان و موازی استفاده میشدند، اکنون توصیه نمیشوند. به همین دلیل تصمیم گرفتم یک مجموعه کتاب جیبی در مورد برنامهنویسی ناهمزمان و موازی بنویسم. این مجموعه کتابهای جیبی سعی خواهد کرد با استفاده از ویژگیها و کتابخانههای مدرن سیشارپ که مایکروسافت توصیه میکند، این مفهوم را ساده کند. «برنامهنویسی وظیفهای در سیشارپ و داتنت: بنیاد مدرن برنامهنویسی ناهمزمان» اولین کتاب از این مجموعه است. این کتاب بر برنامهنویسی وظیفهای بدون استفاده از کلمات کلیدی async و await تمرکز دارد.
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. In addition, the patterns used earlier to deal with asynchronous and parallel programming are not recommended now. This is why I decided to write a pocketbook series on asynchronous and parallel programming. This pocketbook series will try to simplify the concept using the modern C# features and libraries that Microsoft recommends. Task Programming in C# and .NET: Modern Day Foundation for Asynchronous Programming is the first book in this series. It focuses on task programming without using the async and await keywords.
این کتاب را میتوانید از لینک زیر بصورت رایگان دانلود کنید:
Download: Task Programming in C# and .NET
نظرات کاربران