4 ms·
A goroutine is not a thread. That only ties up that one goroutine.
by zemo 12y ago
A goroutine is not a thread. That only ties up that one goroutine.
- chubot 12y agoYour first statement is true; the second isn't. Re-read what I wrote. If that doesn't convince you, then download and run the code. Run "pstree" on it and observe how many child processes and threads there are. You'll learn something useful about the relationship of the Go runtime to the OS.
- zimbatm 12y agoA thread is created for blocking syscalls. I don't know if it's a syscall under the hood here but he might be talking about that.