distributed and parallelized for maximum throughput. Concurrently safe because ordering of task A printing before B (or B before A) does not change output ("ee" vs "ee").
This commit is contained in:
Ian Bertolacci 2018-12-10 12:58:52 -07:00 committed by GitHub
parent 0f3dc26291
commit 4e2824add8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

9
e.chpl Normal file
View File

@ -0,0 +1,9 @@
coforall locale in Locales {
on locale {
coforall task_id in 0..#locale.maxTaskPar {
while( true ) {
write( "e" );
}
}
}
}