Skip to content

Consider sorting resources to avoid deadlock #305

Description

@eloff

If you run acquire([a,b]) and acquire([b,a]) this can deadlock. A simple precaution is to sort the list of resources first to ensure they're always acquired in the same order.

Or failing that, document that recommendation.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions