Concurrent computing: Difference between revisions

→‎Go/Select: rearrange a few lines
(→‎Go/Select: rearrange a few lines)
Line 506:
 
func main() {
w1 := make(chan bool, 1)
w2 := make(chan bool, 1)
w3 := make(chan bool, 1)
for i := 0; i < 3; i++ {
fmt.Println()
w1 := make(chan bool, 1)
w2 := make(chan bool, 1)
w3 := make(chan bool, 1)
w1 <- true
w2 <- true
w3 <- true
fmt.Println()
for i := 0; i < 3; i++ {
select {
1,707

edits