Skip to content

goroutine/schedular starvation #6205

@gopherbot

Description

@gopherbot

by kbsriram:

http://play.golang.org/p/06bz6Td0Mg

Why does only writer1 get scheduled? (Or is the code itself required to account for
potential goroutine starvation?)

[PS: thanks to discussion on freenode/#go-nuts for isolating this specific example.
There are other biases present in an unbuffered channel, but none as interesting as the
previous one. eg: http://play.golang.org/p/g9pxx3R3BV]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions