Advanced Go (Golang)
Q60 / 100

What is the Go data race detector and how do you enable it?

Correct! Well done.

Incorrect.

The correct answer is B) A runtime tool built on ThreadSanitizer, enabled with -race flag, that detects actual concurrent memory accesses at runtime

B

Correct Answer

A runtime tool built on ThreadSanitizer, enabled with -race flag, that detects actual concurrent memory accesses at runtime

Explanation

go test -race or go run -race instruments the binary. The race detector catches actual concurrent reads/writes, not just potential ones.

Progress
60/100