! output sort
! timeout 30
$ java -classpath ${classpath:=.} async/AsyncTest ${srcdir:=.}/platform.xml ${srcdir:=.}/async/asyncDeployment.xml "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n"
+> [ 0.000000] (0:@) Using regular java threads. Coroutines could speed your simulation up.
> [ 0.000000] (10:async.Slave@Robert) Receiving on 'slave_8'
> [ 0.000000] (11:async.Slave@Sirois) Receiving on 'slave_9'
> [ 0.000000] (12:async.Slave@Monique) Receiving on 'slave_10'
> [ 25.851463] (2:async.Forwarder@Jackson) I'm done. See you!
> [ 26.357007] (3:async.Forwarder@Casavant) I'm done. See you!
> [ 29.000728] (0:@) MSG_main finished; Cleaning up the simulation...
-> [0.000000] [jmsg/INFO] Using regular java threads. Coroutines could speed your simulation up.
! output sort
$ java -classpath ${classpath:=.} masterslave/Masterslave ${srcdir:=.}/platform.xml ${srcdir:=.}/masterslave/masterslaveDeployment.xml "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n"
+> [ 0.000000] (0:@) Using regular java threads. Coroutines could speed your simulation up.
> [ 0.000000] (1:masterslave.Master@Jacquelin) Hello! Got 7 slaves and 5 tasks to process
> [ 0.000000] (2:masterslave.Forwarder@Jackson) Receiving on 'slave_0'
> [ 0.000000] (3:masterslave.Forwarder@Casavant) Receiving on 'slave_1'
> [ 17.251680] (0:@) MSG_main finished; Cleaning up the simulation...
> [ 17.251680] (1:masterslave.Master@Jacquelin) Goodbye now!
> [ 17.251680] (8:masterslave.Slave@Browne) Received Finalize. I'm done. See you!
-> [0.000000] [jmsg/INFO] Using regular java threads. Coroutines could speed your simulation up.
! output sort
$ java -classpath ${classpath:=.} migration/Migration ${srcdir:=.}/platform.xml ${srcdir:=.}/migration/migrationDeployment.xml "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n"
+> [ 0.000000] (0:@) Using regular java threads. Coroutines could speed your simulation up.
> [ 0.000000] (1:migration.Emigrant@Jacquelin) I'll look for a new job on another machine where the grass is greener.
> [ 0.000000] (1:migration.Emigrant@Boivin) Yeah, found something to do
> [ 1.000000] (2:migration.Policeman@Boivin) Wait a bit before migrating the emigrant.
> [ 7.000000] (1:migration.Emigrant@Jacquelin) I've been moved on this new host:Jacquelin
> [ 7.000000] (1:migration.Emigrant@Jacquelin) Uh, nothing to do here. Stopping now
> [ 7.000000] (2:migration.Policeman@Boivin) I moved the emigrant
-> [0.000000] [jmsg/INFO] Using regular java threads. Coroutines could speed your simulation up.
-
! output sort
$ java -classpath ${classpath:=.} priority/Priority ${srcdir:=.}/platform.xml ${srcdir:=.}/priority/priorityDeployment.xml "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n"
+> [ 0.000000] (0:@) Using regular java threads. Coroutines could speed your simulation up.
> [ 0.000000] (1:priority.Test@Fafard) Hello! Running a task of size 7.6296E7 with priority 1.0
> [ 0.000000] (2:priority.Test@Fafard) Hello! Running a task of size 7.6296E7 with priority 2.0
> [ 0.833332] (2:priority.Test@Fafard) Goodbye now!
> [ 1.111109] (0:@) MSG_main finished; Cleaning up the simulation...
> [ 1.111109] (1:priority.Test@Fafard) Goodbye now!
-> [0.000000] [jmsg/INFO] Using regular java threads. Coroutines could speed your simulation up.
! output sort
$ java -classpath ${classpath:=.} suspend/Suspend ${srcdir:=.}/platform.xml ${srcdir:=.}/suspend/suspendDeployment.xml "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n"
+> [ 0.000000] (0:@) Using regular java threads. Coroutines could speed your simulation up.
> [ 0.000000] (1:suspend.DreamMaster@Jacquelin) Let's create a lazy guy.
> [ 0.000000] (1:suspend.DreamMaster@Jacquelin) Let's wait a little bit...
> [ 0.000000] (2:Lazy@Jacquelin) Nobody's watching me ? Let's go to sleep.
> [ 10.000000] (1:suspend.DreamMaster@Jacquelin) OK, goodbye now.
> [ 10.000000] (2:Lazy@Jacquelin) Uuuh ? Did somebody call me ?
> [ 10.000000] (2:Lazy@Jacquelin) Mmmh, goodbye now.
-> [0.000000] [jmsg/INFO] Using regular java threads. Coroutines could speed your simulation up.
-
! output sort
$ java -classpath ${classpath:=.} masterslave/Masterslave ${srcdir:=.}/platform.xml ${srcdir:=.}/masterslave/masterslaveDeployment.xml "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n"
+> [ 0.000000] (0:@) Using regular java threads. Coroutines could speed your simulation up.
> [ 0.000000] (1:masterslave.Master@Jacquelin) Hello! Got 7 slaves and 5 tasks to process
> [ 0.000000] (2:masterslave.Forwarder@Jackson) Receiving on 'slave_0'
> [ 0.000000] (3:masterslave.Forwarder@Casavant) Receiving on 'slave_1'
> [ 17.251680] (0:@) MSG_main finished; Cleaning up the simulation...
> [ 17.251680] (1:masterslave.Master@Jacquelin) Goodbye now!
> [ 17.251680] (8:masterslave.Slave@Browne) Received Finalize. I'm done. See you!
-> [0.000000] [jmsg/INFO] Using regular java threads. Coroutines could speed your simulation up.
(*env)->GetJavaVM(env, &__java_vm);
- if ((*env)->FindClass(env, "java/dyn/Coroutine")) {
- XBT_INFO("Using Coroutines. Your simulation is on steroid.");
- smx_factory_initializer_to_use = SIMIX_ctx_cojava_factory_init;
- }
- else {
- XBT_INFO("Using regular java threads. Coroutines could speed your simulation up.");
- smx_factory_initializer_to_use = SIMIX_ctx_java_factory_init;
- }
+ if ((*env)->FindClass(env, "java/dyn/Coroutine"))
+ smx_factory_initializer_to_use = SIMIX_ctx_cojava_factory_init;
+ else
+ smx_factory_initializer_to_use = SIMIX_ctx_java_factory_init;
jthrowable exc = (*env)->ExceptionOccurred(env);
if (exc) {
(*env)->ExceptionClear(env);
free(argv[index]);
free(argv);
+
+ if (smx_factory_initializer_to_use == SIMIX_ctx_cojava_factory_init)
+ XBT_INFO("Using Coroutines. Your simulation is on steroid.");
+ else if (smx_factory_initializer_to_use == SIMIX_ctx_java_factory_init)
+ XBT_INFO("Using regular java threads. Coroutines could speed your simulation up.");
+ else
+ xbt_die("Unknown context factory. Please report bug.");
}
JNIEXPORT void JNICALL