I/O Bound vs CPU Bound
Understand the distinctions between I/O bound and CPU bound programs and how each affects system resource usage. Learn how concurrency and multithreading can be applied to improve performance for both types by efficiently managing CPU utilization and I/O waits in Ruby environments.
We'll cover the following...
I/O Bound vs CPU Bound
We write programs to solve problems. Programs utilize various resources of the computer systems on which they run. For instance a program running on your machine will broadly require:
CPU Time
Memory
Networking Resources
Disk Storage
Depending on what a program does, it can require heavier use of one or more resources. For instance, a program that loads gigabytes of data from storage into the main memory would hog the main memory of the machine it runs on. Another can be writing several gigabytes to permanent storage, requiring abnormally high disk I/O.
CPU Bound
...