Work Stealing

  • Work stealing helps to balance the goroutines acrosss all logical processors.
  • Work gets better distributed and gets done more efficiently.

Work Stealing Rule

  • If there is no goroutines in local run queue.
  • Try to steal from other logical processors. Image Image
  • If not found, check the global runnable queue for a G Image Image
  • It not found, check netpoller.
© Kimi Tsai all right reserved.            Updated : 2023-07-12 09:04:54

results matching ""

    No results matching ""

    results matching ""

      No results matching ""