How are Go channels implemented?

前端 未结 2 782
孤街浪徒
孤街浪徒 2021-01-29 19:21

After (briefly) reviewing the Go language spec, effective Go, and the Go memory model, I\'m still a little unclear as to how Go channels work under the hood.

What kind o

2条回答
  •  滥情空心
    2021-01-29 19:48

    Here is a good talk that describes roughly how channels are implemented:
    https://youtu.be/KBZlN0izeiY

    Talk description:

    GopherCon 2017: Kavya Joshi - Understanding Channels

    Channels provide a simple mechanism for goroutines to communicate, and a powerful construct to build sophisticated concurrency patterns. We will delve into the inner workings of channels and channel operations, including how they're supported by the runtime scheduler and memory management systems.

提交回复
热议问题