लर्निंग पाथ

Go में Concurrency

Goroutine, channel, select, Mutex, worker pool और 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.