about summary refs log tree commit diff stats
path: root/fork.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-05-05 21:19:56 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-05-05 21:19:56 -0700
commit8923d6f658d09de800164b8fc6514475f49307b4 (patch)
treeeba908571140095abbecce3e64359bbdd427e90f /fork.mu
parentb96af395b9af2ff9df94b3e82213171f30827c8d (diff)
downloadmu-8923d6f658d09de800164b8fc6514475f49307b4.tar.gz
1277
Diffstat (limited to 'fork.mu')
-rw-r--r--fork.mu18
1 files changed, 18 insertions, 0 deletions
diff --git a/fork.mu b/fork.mu
new file mode 100644
index 00000000..eb1a2ca1
--- /dev/null
+++ b/fork.mu
@@ -0,0 +1,18 @@
+recipe main [
+  start-running thread2:recipe
+  default-space:address:array:location <- new location:type, 2:literal
+  x:integer <- copy 34:literal
+  {
+    $print x:integer
+    loop
+  }
+]
+
+recipe thread2 [
+  default-space:address:array:location <- new location:type, 2:literal
+  y:integer <- copy 35:literal
+  {
+    $print y:integer
+    loop
+  }
+]