Skip to content

High CPU usage from busy-wait loops #58

@sancheet230

Description

@sancheet230

Busy-wait loops using while(...is_alive()): pass cause unnecessary high CPU usage when waiting for processes or threads to finish

Potential fixes:-
using time.sleep(0.1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions