Grokking Concurrency
eBook - ePub

Grokking Concurrency

  1. 304 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Grokking Concurrency

About this book

This easy-to-read, hands-on guide demystifies concurrency concepts like threading, asynchronous programming, and parallel processing in any language.

Perplexed by concurrency? Don’t be. This engaging, fully-illustrated beginner’s guide gets you writing the kind of high-performance code your apps deserve. Inside, you’ll find thorough explanations of concurrency’s core concepts—all explained with interesting illustrations, insightful examples, and detailed techniques you can apply to your own projects.

In Grokking Concurrency you will:

  • Get up to speed with the core concepts of concurrency, asynchrony, and parallel programming
  • Learn the strengths and weaknesses of different hardware architectures
  • Improve the sequential performance characteristics of your software
  • Solve common problems for concurrent programming
  • Compose patterns into a series of practices for writing scalable systems
  • Write and implement concurrency systems that scale to any size

Discover effective concurrency practices that will help you leverage multiple cores, excel with high loads, handle terabytes of data, and continue working after hardware and software failures. The core concepts in this guide will remain eternally relevant, whether you’re building web apps, IoT systems, or handling big data.

About the technology

Concurrency is an approach to running computer programs efficiently by separating them into tasks that can execute independently. This basic idea makes it possible to accelerate game graphics, train large AI models, rapidly scale web applications, streamline big data processing, and much more. Concurrency can get complicated, so this book gets you started gently with interesting examples, entertaining illustrations, and easy-to-follow Python code.

About the book

Grokking Concurrency is a perfectly paced introduction to the fundamentals of concurrent, parallel, and asynchronous programming. In it, you’ll learn the practices you’ll need to program multicore processors, GPUs, and other high-performance systems. Author Kirill Bobrov skips the math, jargon, and academic language and concentrates on clear, plain-English explanations.

What's inside

  • Writing and running concurrent programs
  • Patterns for performance, scalability, and resilience
  • Choosing the right hardware
  • Asynchronous communication

About the reader

Examples in Python. No prior experience with concurrency or high-performance computing required.

About the author

Kirill Bobrov is a software engineer with a passion for data engineering.

Table of Contents

Part 1 The Octopus Orchestra: Introduction to a Symphony of Concurrency
1 Introducing concurrency
2 Serial and parallel execution
3 How computers work
4 Building blocks of concurrency
5 Interprocess communication
Part 2 the Many Tentacles of Concurrency: Multitasking, Decomposition,
and Synchronization
6 Multitasking
7 Decomposition
8 Solving concurrency problems: Race conditions and synchronization
9 Solving concurrency problems: Deadlocks and starvation
Part 3 Asynchronous Octopuses: a Pizza-making Tale of Concurrency
10 Nonblocking I/O
11 Event-based concurrency
12 Asynchronous communication
13 Writing concurrent applications

Trusted by 375,005 students

Access to over 1.5 million titles for a fair monthly price.

Study more efficiently using our study tools.

Information

Publisher
Manning
Year
2024
eBook ISBN
9781638354321

Table of contents

  1. inside front cover
  2. Grokking Concurrency
  3. Copyright
  4. dedication
  5. contents
  6. front matter
  7. Part 1. The octopus orchestra: Introduction to a symphony of concurrency
  8. 1 Introducing concurrency
  9. 2 Serial and parallel execution
  10. 3 How computers work
  11. 4 Building blocks of concurrency
  12. 5 Interprocess communication
  13. Part 2. The many tentacles of concurrency: Multitasking, decomposition, and synchronization
  14. 6 Multitasking
  15. 7 Decomposition
  16. 8 Solving concurrency problems: Race conditions and synchronization
  17. 9 Solving concurrency problems: Deadlocks and starvation
  18. Part 3. Asynchronous octopuses: A pizza-making tale of concurrency
  19. 10 Nonblocking I/O
  20. 11 Event-based concurrency
  21. 12 Asynchronous communication
  22. 13 Writing concurrent applications
  23. Epilogue
  24. index
  25. inside back cover

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.5M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1.5 million books across 990+ topics, we’ve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access Grokking Concurrency by Kiril Bobrov in PDF and/or ePUB format, as well as other popular books in Computer Science & Programming. We have over 1.5 million books available in our catalogue for you to explore.