Fix busy-waiting loops #2977
Labels
epic: code quality
info: good first issue
status: stale
issues and pull requests that have not had recent interaction
Description
Busy-waiting, or spinning, is a technique where a process repeatedly checks to see if a condition is true, such as whether keyboard input or a lock is available. While it might seem like a good idea, it has several significant drawbacks:
Instead of busy-waiting, it's generally better to use some form of event-driven programming or blocking. This allows your process to sleep until the condition it's waiting for becomes true, which can save CPU time, improve performance, and make your application more responsive.
Busy-waiting loops are at least in these locations:
Acceptance Criteria
The text was updated successfully, but these errors were encountered: