The difference between the pipeline and channel

The difference between the pipeline and channel

In golang, the time to learn channel, often will have some doubts, and channel difference is what?

Here's the difference:

difference channel pipeline
structure streams of a Go type unstructured streams of bytes
platform specific type in golang unix Or unix like
buffer Depending on the circumstances always buffered
features connected between goroutine between two process(std.in/out)

In fact, the difference between these two things is still getting bigger, but the use is very clear, that is communication

Guess you like

Origin www.cnblogs.com/wangha/p/11409092.html