Учебный трек

Конкурентность в Go

Горутины, каналы, 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.