Concurrency in Go vs. Other Languages



The below video was shared on Twitter.

It’s a really great view into concurrency and how Go’s system differs from “Threads” in other languages:


GoRoutines vs. Threads

At about 12:44 into the video Eyal gets into the methodology of Go concurrency (Go Routines) and how they differ from threads.

The memory stack of a Goroutine is very small. It starts at 2kb.

The go stack grows as needed and it also shrinks when no longer needed.

If 10,000 goroutines were created, they would only consume 20MB of memory.

The above values are much smaller than the stack size of threads.

What do you think?

0 points
Upvote Downvote

Total votes: 0

Upvotes: 0

Upvotes percentage: 0.000000%

Downvotes: 0

Downvotes percentage: 0.000000%

Written by Admin

I work for a Telecom company writing and testing software. My passion for writing code is expressed through this blog. It's my hope that it gives hope to any and all who are self-taught.

My Projects

Twitter Bots/Trolls Exposed