Commit 0a9ade6b authored by Thanassis Tsiodras's avatar Thanassis Tsiodras

Various minor fixups

- Make the test last 5 seconds
- Have the init task emit a farewell msg (to verify interleaving)
- Have the worker tasks in lower priority (2)
parent f079b732
Pipeline #41 skipped
......@@ -23,7 +23,7 @@ rtems_task Init(rtems_task_argument argument)
// Create Task
status = rtems_task_create(
Task_name[i],
(rtems_task_priority) 1,
(rtems_task_priority) 2,
RTEMS_MINIMUM_STACK_SIZE,
RTEMS_DEFAULT_MODES,
RTEMS_FLOATING_POINT, // use RTEMS_DEFAULT_ATTRIBUTES for non-native FPU tasks
......@@ -41,5 +41,6 @@ rtems_task Init(rtems_task_argument argument)
}
printk("Parent task sleeps for a second...\n");
rtems_task_wake_after(100);
printk("Parent task bids adieu...\n");
rtems_task_delete(RTEMS_SELF);
}
......@@ -10,7 +10,7 @@ rtems_task Task_EntryPoint(rtems_task_argument argument)
double d=task_no;
for(j=0; j<10000; j++) {
int k;
for(k=0; k<100; k++)
for(k=0; k<10000; k++)
d+=1.001;
d*=1.0001;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment