Texas Instruments Interview Question

Question related to system programming and few on semaphores