Created
December 6, 2016 22:26
-
-
Save WowSuchRicky/0e582e69d2e62056778bb6314d7cd521 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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