How to synchronize the two task in UART interrupt mode

we have had this several times before, for example here: Synchronizing UART TX - Kernel - FreeRTOS Community Forums

I generally recommend to employ the forum search function before posting questions.