Life360 interview question

Syncing between two RTOS threads