- Distributed Computing with Go
- V.N. Nikhil Anurag
- 113字
- 2021-06-24 18:36:13
Channels and Messages
In Chapter 2, Understanding Goroutines, we looked at how goroutines work, how to use them in a concurrent fashion, and some of the common mistakes that might occur. They were simple to use and reason about, but they were limited because they are able to spawn other goroutines and wait on system calls. In reality, goroutines are more capable than what was shown in the previous chapter, and to uncover their full potential we need to understand how to use channels, which is the aim of the current chapter. Here, we will look at the following topics:
- Controlling parallelism
- Channels and data communication
- Types of channels
- Closing and multiplexing channels
推薦閱讀
- Linux運維之道(第3版)
- Linux網(wǎng)絡(luò)管理與配置(第2版)
- 細(xì)說Linux基礎(chǔ)知識
- NetDevOps入門與實踐
- OpenSolaris設(shè)備驅(qū)動原理與開發(fā)
- Python UNIX和Linux系統(tǒng)管理指南
- 統(tǒng)信UOS應(yīng)用開發(fā)進(jìn)階教程
- Web Penetration Testing with Kali Linux(Third Edition)
- Linux內(nèi)核分析及應(yīng)用
- Mastering Sass
- iOS Programming Cookbook
- Administering ArcGIS for Server
- Modern Python Cookbook
- 跟老男孩學(xué)Linux運維:Web集群實戰(zhàn)
- Linux系統(tǒng)編程