changeset 952:a86e0a2b7a30

5 phils case
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 08 Feb 2021 12:43:06 +0900
parents 61e27bf3b0e2
children a5b36ecbb86e faa9afc7dd07
files src/parallel_execution/examples/DPPMC/main.cbc
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/parallel_execution/examples/DPPMC/main.cbc	Mon Feb 08 12:40:50 2021 +0900
+++ b/src/parallel_execution/examples/DPPMC/main.cbc	Mon Feb 08 12:43:06 2021 +0900
@@ -46,7 +46,7 @@
     add_memory_range(&((struct AtomicT_intImpl_int*)fork3->atomicT_int)->atomic, sizeof(int), &mcti->mem); 
     add_memory_range(&((struct AtomicT_intImpl_int*)fork4->atomicT_int)->atomic, sizeof(int), &mcti->mem); 
     mcti->statefunc = mcDPP;
-#if 0					     
+#if 1					     
     Phils* phils0 = createPhilsImpl(context,0,fork0,fork1); //  phils0
     Phils* phils1 = createPhilsImpl(context,1,fork1,fork2); //  phils1
     Phils* phils2 = createPhilsImpl(context,2,fork2,fork3); //  phils2
@@ -61,7 +61,7 @@
     par goto phils0->thinking(exit_code);
     par goto phils1->thinking(exit_code);
     par goto phils2->thinking(exit_code);
-#if 0
+#if 1
     par goto phils3->thinking(exit_code);
     par goto phils4->thinking(exit_code);
 #endif