Skip to content

Instantly share code, notes, and snippets.

@dom96
Created July 12, 2018 20:04
Show Gist options
  • Save dom96/34bf9d814438ebb84f0c0a316eed0d3f to your computer and use it in GitHub Desktop.
Save dom96/34bf9d814438ebb84f0c0a316eed0d3f to your computer and use it in GitHub Desktop.
import osproc, threadpool
proc foo() =
while true:
discard
for i in 0 ..< countProcessors()-1:
spawn foo()
foo()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment