M
M
ML2017-04-01 22:52:09
go
ML, 2017-04-01 22:52:09

Principle of asynchronous applications in GO?

When should you use channels, goroutines?
Examples of multithreaded applications in go?
Thanks in advance.
When their use will be superfluous, etc. Explain, please.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Trakhimenok, 2017-04-02
@astec

For examples and an explanation of when to go to https://tour.golang.org/concurrency/1
It is also worth understanding how asynchrony differs from multithreading.
It is not necessary when the overhead costs for channels and routines exceed the gain from their use.
It is also useful to read different criticism in order to understand the real pitfalls. For example www.jtolds.com/writing/2016/03/go-channels-are-bad...
Good luck.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question