Skip to content

Instantly share code, notes, and snippets.

@WowSuchRicky
Created December 6, 2016 22:26
Show Gist options
  • Select an option

  • Save WowSuchRicky/0e582e69d2e62056778bb6314d7cd521 to your computer and use it in GitHub Desktop.

Select an option

Save WowSuchRicky/0e582e69d2e62056778bb6314d7cd521 to your computer and use it in GitHub Desktop.
package main
import "fmt"
func PrintHello() {
fmt.Println("Hello world!")
}
func main() {
numThreads := 5
for i := 0; i < numThreads; i++ {
go PrintHello()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment