Common coding exercises asked in reviews
- Print "Dog" and "Cat" alternatively 20 times using concurrency
- Find Maximum Sum from Two Halves of an Array Using Goroutines
- Fan-in Pattern
- • Solve the "Dining Philosophers Problem" using goroutines and channels.
- What are goroutines? How do they differ from threads?
- What are channels in Go? What are buffered and unbuffered channels?
- Explain the difference between concurrency and parallelism.
- Write a program that uses goroutines and channels to compute the sum of numbers in parallel.
- Implement a producer-consumer problem using goroutines and channels.
- Learn ways to use goroutines and channels for efficient computing.
- Explain the internal workings of channels in Go.
- what if i try send values to a channel using normal function?
Goroutines
- What are Goroutines?
- Why use Goroutines?
- Example of goroutine
- How Does the Go Runtime Manage Goroutines?
- Stack Management of goroutines
- Context Switching