Threads need to grab locks, which will waste CPU performance and turn parallelism into serialization. Gorouten uses notifications to send data to a separate thread to make a copy, and then other threads do not need to compete for locks to truly execute in parallel
http://tleyden.github.io/blog...
Goroutine has less overhead than thread and is simpler
Threads need to grab locks, which will waste CPU performance and turn parallelism into serialization. Gorouten uses notifications to send data to a separate thread to make a copy, and then other threads do not need to compete for locks to truly execute in parallel