1Mediumgeneralโฑ 45sWhat is the difference between a channel and a mutex for concurrency in Go?๐โผAThey are interchangeable in all casesBChannels communicate data between goroutines (share by communicating); mutexes protect shared memory accessed by multiple goroutines directlyCMutexes are Go-specific; channels come from CDChannels can only be used with buffered size 0
2Mediumgeneralโฑ 45sWhat does the `defer` statement guarantee?๐โผAImmediate execution before the current lineBThe deferred call runs just before the surrounding function returns, in LIFO order for multiple defersCIt skips the function entirelyDIt only works with panic/recover