Quiz

Quiz yourself on the concepts of deadlock, race condition, livelock, and starvation.

We'll cover the following...
Technical Quiz
1.

(True or False.) The following code will throw a deadlock error:

package main

import "fmt"

func main() {
	messages := make(chan string)

	go func() {
		<-messages                         
		fmt.Println("Receive message")
	}()

	<-messages     
    fmt.Println("Receive message")
}
A.

True

B.

False


1 / 3