|
|
|
|
|
by baruch
5120 days ago
|
|
The goroutine is a user-thread, Go can create as many threads as there are cores and schedules user-threads inside these threads without the programmer managing that, you just create goroutines. When a goroutine "blocks" it schedules out from the thread and another can replace it. http://golang.org/doc/effective_go.html#goroutines |
|