Skip to content

Task fair, not phase fair #1

@WonderfulVoid

Description

@WonderfulVoid

I think the type 1 lock is only task fair, not phase fair. You see this in the ReadLock1() function where a reader thread waits for all previous (to itself) writers to complete. I.e. a reader thread cannot join an intermediate read phase.

while (*lock->completions->writer != *prev->writer)

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