```
void print_task(void)
{
    for(;;)
    {
        taskLock();
        printf("this is task %d\n", taskIdSelf());
        taskUnlock();
        taskDelay(0);
    }
}
void print_test(void)
{
    taskSpawn("t1", 100,0,0x10000, (FUNCPTR)print_task, 0,0,0,0,0,0,0,0,0,0);
    taskSpawn("t2", 100,0,0x10000, (FUNCPTR)print_task, 0,0,0,0,0,0,0,0,0,0);
}

```

the above code show:

> 
> this is task this is task126738208 126672144 this is task this is
>  task 126712667214438208
> 
> 
> this is task this is task 1266721441 26738208 this is task 126672144
>  this is task
> 
> 
> 

what is the right way to print a string in multitask?