Hacker News new | ask | show | jobs
by zemo 4375 days ago
A goroutine is not a thread. That only ties up that one goroutine.
2 comments

Your 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.

A 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.