学習パス

Go の並行処理

goroutine、チャネル、select、Mutex、ワーカープール、context。

レッスン 6 件 · チャレンジ 6 件

  1. レッスン チャレンジ 1 件 Goroutines and WaitGroup Start lightweight threads with go and wait for them with sync.WaitGroup.
  2. レッスン チャレンジ 1 件 Channels Send values between goroutines with channels, buffered and unbuffered.
  3. レッスン チャレンジ 1 件 Select and Timeouts Wait on several channels at once and stop waiting after a timeout.
  4. レッスン チャレンジ 1 件 Mutex: Protecting Shared Data Let several goroutines change one value safely with sync.Mutex.
  5. レッスン チャレンジ 1 件 Worker Pool Share a queue of jobs between a fixed number of goroutines.
  6. レッスン チャレンジ 1 件 Context: Cancellation and Deadlines Stop work that takes too long or is no longer needed with context.