Goroutines communicate via _____ to ensure synchronized access to shared data.

  • Mutexes
  • Semaphores
  • Channels
  • Pointers
Goroutines communicate via channels to ensure synchronized access to shared data. Channels are a fundamental concept in Go's concurrency model. They provide a safe and efficient way for Goroutines to communicate and synchronize their actions. By sending and receiving data through channels, Goroutines can coordinate and share data without the need for explicit locking mechanisms like mutexes or semaphores.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *