Commit fac76e56 authored by Thanassis Tsiodras's avatar Thanassis Tsiodras

To make sure the tasks start concurrently, flush stdout

parent 5be03dca
Pipeline #75 skipped
...@@ -5,6 +5,7 @@ rtems_task Task1_EntryPoint(rtems_task_argument argument) ...@@ -5,6 +5,7 @@ rtems_task Task1_EntryPoint(rtems_task_argument argument)
{ {
int task_no = (int) argument; int task_no = (int) argument;
printf("Inside task %d...\n", task_no); printf("Inside task %d...\n", task_no);
fflush(stdout);
int j; int j;
double d=task_no; double d=task_no;
......
...@@ -6,7 +6,6 @@ rtems_task Task2_EntryPoint(rtems_task_argument argument) ...@@ -6,7 +6,6 @@ rtems_task Task2_EntryPoint(rtems_task_argument argument)
int task_no = (int) argument; int task_no = (int) argument;
printf("Inside task %d...\n", task_no); printf("Inside task %d...\n", task_no);
fflush(stdout); fflush(stdout);
//rtems_task_wake_after(100);
int j; int j;
long long int dummy = 0; long long int dummy = 0;
......
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