Skip to content

Instantly share code, notes, and snippets.

@oscardelben
Created April 24, 2013 04:16
Show Gist options
  • Save oscardelben/5449587 to your computer and use it in GitHub Desktop.
Save oscardelben/5449587 to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
"runtime"
)
func main() {
runtime.GOMAXPROCS(runtime.NumCPU())
go func() {
fmt.Println("Hello") // Only runs if GOMAXPROCS is more than 1
}()
for {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment