top | item 38047356

(no title)

asdfaoeu | 2 years ago

The issue with OPs is that it's really a case where coroutines would have any advantage so it's kind of pointless.

discuss

order

otabdeveloper4|2 years ago

What, you mean using threads doesn't automatically make your machine slow to a crawl because of le ""context switches""??

Heresy! But my async!

zekrioca|2 years ago

I agree OP could have been more elaborate, but the main takeaway is that goroutines still cost at least 50% that of normal threads (though this needs to be verified in normal servers as well, not just smartphones). With goroutines, though usually supported by runtime systems (e.g., in Go), applications are responsible to manage tasks (e.g., HTTP requests) in order to harvest goroutines benefits, whereas this is easier with threads.

Edited for clarification.