
۴۴٬۰۰۰تومان
نوع فایل دانلود: EPUB
پس از خرید، یک فایل EPUB دریافت میکنید.
این فایل با Calibre، Apple Books و سایر کتابخوانهای دیجیتال مناسب است.
همزمانی در پایتون را بهصورت عملی و عمیق بفهمید تا برنامههایی کارآمد بنویسید
درباره این کتاب
• برنامههایی بسیار کارآمد، پایدار و همزمان بسازید
• با مثالهای عملی پیش بروید که به شما کمک میکنند چالشهای نوشتن کد همزمان را حل کنید
• سرعت کلی اجرا را در سیستمهای چندپردازندهای و چندهستهای بالا ببرید و آنها را همیشه در دسترس نگه دارید
این کتاب برای چه کسانی است
این کتاب برای برنامهنویسان پایتون است که میخواهند برنامهنویسی همزمان را شروع کنند. از خواننده انتظار میرود دانش کاربردی از زبان پایتون داشته باشد، چون این کتاب روی همان مفاهیم پایه بنا میشود.
آنچه یاد میگیرید
• مفهوم threading و multiprocessing را در پایتون بررسی کنید
• همزمانی با threadها را بفهمید
• مدیریت استثناها در threadهای فرزند را یاد بگیرید
• سختترین بخش یک سیستم همزمان را مدیریت کنید: منابع مشترک
• سیستمهای همزمان را با Communicating Sequential Processes (CSP) بسازید
• همه سیستمهای همزمان را نگه دارید و بر آنها مسلط شوید
• برنامهنویسی واکنشی را برای ساخت سیستمهای همزمان بهکار ببرید
• از GPU برای حل مسائل خاص استفاده کنید
با جزئیات بیشتر
پایتون زبانی سطحبالا و همهمنظوره است که در حوزههایی مثل علم داده و پژوهش بسیار بهکار میرود و یکی از گزینههای محبوب برنامهنویسان در سراسر جهان برای برنامهنویسی عمومی است. این زبان کتابخانهها و فریمورکهای قدرتمند زیادی در سطح بالا و پایین دارد که در کنار نحو دلپذیرش، به برنامهنویسان پایتون امکان ساخت میدهند. این کتاب برخی از محبوبترین کتابخانهها و فریمورکها را معرفی میکند و بهتفصیل نشان میدهد چطور میتوانید از آنها برای برنامههای پایتون با همزمانی بالا و عملکرد قوی استفاده کنید. مفاهیم بنیادی همزمانی را پوشش میدهیم تا بتوانید سیستمهای نرمافزاری همزمان و موازی خودتان را در پایتون بنویسید. کتاب شما را در مسیر تسلط بر همزمانی در پایتون راهنمایی میکند و دانش سختافزاری و نظری لازم را در اختیارتان میگذارد. مفاهیمی مثل اشکالزدایی و مدیریت استثناها را هم بررسی میکنیم، بههمراه برخی از محبوبترین کتابخانهها و فریمورکهایی که اجازه میدهند سیستمهای رویدادمحور و واکنشی بسازید. در پایان کتاب، تکنیکهایی را یاد گرفتهاید که با آنها سیستمهای همزمان بسیار کارآمد مینویسید و بهترین شیوهها را رعایت میکنید.
سبک و رویکرد
این راهنمای آسانفهم، شیوهها و تکنیکهای تازهای برای بهینهسازی کدتان به شما یاد میدهد و بعد به سمت روشهای پیشرفتهتر برای نوشتن کارآمد کد پایتون میرود. مثالهای عملی کوچک و ساده کمک میکنند خودتان مفاهیم را بیازمایید و بتوانید آنها را بهراحتی با هر برنامهای سازگار کنید.
Practically and deeply understand concurrency in Python to write efficient programs About This Book • Build highly efficient, robust, and concurrent applications • Work through practical examples that will help you address the challenges of writing concurrent code • Improve the overall speed of execution in multiprocessor and multicore systems and keep them highly available Who This Book Is For This book is for Python developers who would like to get started with concurrent programming. Readers are expected to have a working knowledge of the Python language, as this book will build on these fundamentals concepts. What You Will Learn • Explore the concept of threading and multiprocessing in Python • Understand concurrency with threads • Manage exceptions in child threads • Handle the hardest part in a concurrent system — shared resources • Build concurrent systems with Communicating Sequential Processes (CSP) • Maintain all concurrent systems and master them • Apply reactive programming to build concurrent systems • Use GPU to solve specific problems In Detail Python is a very high level, general purpose language that is utilized heavily in fields such as data science and research, as well as being one of the top choices for general purpose programming for programmers around the world. It features a wide number of powerful, high and low-level libraries and frameworks that complement its delightful syntax and enable Python programmers to create. This book introduces some of the most popular libraries and frameworks and goes in-depth into how you can leverage these libraries for your own high-concurrent, highly-performant Python programs. We'll cover the fundamental concepts of concurrency needed to be able to write your own concurrent and parallel software systems in Python. The book will guide you down the path to mastering Python concurrency, giving you all the necessary hardware and theoretical knowledge. We'll cover concepts such as debugging and exception handling as well as some of the most popular libraries and frameworks that allow you to create event-driven and reactive systems. By the end of the book, you'll have learned the techniques to write incredibly efficient concurrent systems that follow best practices. Style and approach This easy-to-follow guide teaches you new practices and techniques to optimize your code, and then moves toward more advanced ways to effectively write efficient Python code. Small and simple practical examples will help you test the concepts yourself, and you will be able to easily adapt them for any application.