Skip to content

Instantly share code, notes, and snippets.

@rcdexta
Created December 4, 2014 10:34
Show Gist options
  • Save rcdexta/7cec0c66ffbd4da1e317 to your computer and use it in GitHub Desktop.
Save rcdexta/7cec0c66ffbd4da1e317 to your computer and use it in GitHub Desktop.
shared_array = [1,2,3,4,5]
if fork
#will be executed by parent process
parent_array = [6,7,8]
else
#will be executed by child process
child_array = [9,10,11]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment