Channel Buffer Full

Image Image Image Image Image Image Image Image Image Image



  • When channel buffer is full and a goroutine tries to send value.
  • Sender Goroutine gets blocked, it is parked on sendq.
  • Data will be save in the elem field of the sudog structure.
  • When Receiver comes along, it dequeues the value from buffer.
  • Enqueues the data from elem field to the buffer.
  • Pops the goroutine in sendq, and puts it into runnable state.
© Kimi Tsai all right reserved.            Updated : 2023-07-12 09:04:54

results matching ""

    No results matching ""

    results matching ""

      No results matching ""