Go-語言特性

自然併發 從語言層面支持併發, goroute,輕量級線程 基於CSP模擬實現 channel 管道,相似於linux的pipe 多個goroute之間經過channel進行通訊 支持任何類型 管道 func test_pipr() { //管道放入數據 pipe := make(chan int,3) pipe <- 1 pipe <- 2 pipe <
相關文章
相關標籤/搜索