4 ms·
there are cases were coroutines and threads can be used interchangeably. But often times, they co-exist together to solve the problem. That's the case in Go. g
by halayli 6y ago
there are cases were coroutines and threads can be used interchangeably.
But often times, they co-exist together to solve the problem. That's the case in Go. goroutines run on threads after all.
Op's could have used a better example like a web/tcp server handling 100k connections and showed the difference between coroutines alone, threads alone, and both combined.