TempleOSTS_140317.ISO

This commit is contained in:
Terry A. Davis authored and minexew committed 2018-09-08 21:46:02 +02:00
1 parent 2d2a65d572
commit 7ef616a20e
1416 files changed
+223873 -53917

No files matched your search

+51
View File
@@ -0,0 +1,51 @@
Bool app_done;
I64 app_done_ack;
U0 Job1(I64)
{ //Compile Compiler
Preempt(ON); //Off by default
Silent(ON);
while (!app_done) {
Cd("::/Compiler");
Cmp("Compiler");
}
lock {app_done_ack--;}
}
U0 Job2(I64)
{ //Log a file
Preempt(ON); //Off by default
while (!app_done) {
AdamLog("%F","::/Demo/MultiCore/LoadTest.CPP");
Yield;
}
lock {app_done_ack--;}
}
U0 Job3(I64)
{ //Log a file
Preempt(ON); //Off by default
while (!app_done) {
Cd("::/Compiler");
AdamLog("%F","Compiler.PRJ.Z");
Yield;
}
lock {app_done_ack--;}
}
U0 Main()
{
app_done=FALSE;
"Running MultiCore Test...\n";
Spawn(&Job1,,,1); //core #1
Spawn(&Job2,,,1);
Spawn(&Job3,,,1);
PressAKey;
//We don't want to yank code from under MP cores.
app_done_ack=3;
app_done=TRUE;
while (app_done_ack)
Yield;
}
Main;