Skip to content

Improve concurrency example so that it actually is a data race #32733

Closed
@Manishearth

Description

@Manishearth

See discussion on #32538

https://github.com/rust-lang/rust/blob/master/src/doc/book/concurrency.md#safe-shared-mutable-state provides a program that could have a data race, but doesn't -- each thread accesses an independent array member.

We should use a program that does in fact have a data race; perhaps something that iterates over the same array twice or accesses random keys.

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions