Skip to content

Race condition example in stingy_spendy does not work #2

Description

@osadasami

I use golang 1.17. And this code 8e48ac5 to simulate race condition.

For each run I always get 100 but there should be different numbers.

What might be wrong? Don't we need locking anymore?

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