生產者與消費者的併發處理

package main import "fmt" import "math/rand" import "time" // producer func producer(header string, channel chan<- string){ for{ channel <- fmt.Sprintf("%s: %v", header, rand.Int31())
相關文章
相關標籤/搜索