void main (void)
{
  while (1)
  {
    task1();
    task2();
    ..
  }
}