零聲Linux內(nèi)核源碼 內(nèi)存調(diào)優(yōu) 文件系統(tǒng) 進(jìn)程管理 設(shè)備驅(qū)動(dòng) 網(wǎng)絡(luò)協(xié)議棧
用Go簡(jiǎn)單寫一個(gè)生產(chǎn)者/消費(fèi)者的例子
package mainimport ("fmt""sync")type Consumer struct {NO intc <- chan string}
標(biāo)簽:
package mainimport ("fmt""sync")type Consumer struct {NO intc <- chan string}