title: precise synchronization using semaphore using FreeRTOS , is it possible?
body: <p>I am using the FreeRTOS semaphore API functions in my project for task synchronization and handling the shared resources. I am able to achieve task synchronization up to 500us. I need the semaphores to be more precise.</p>
  <ol>
  <li>I have used FreeRTOS API functions to create the semaphore and access the shared resources but I am unable to go below 500us for synchronization. The reason being the context switch that takes the CPU time to save the state of the thread.
  So in order to avoid this, I think having own semaphore library would help</li>
  </ol>
  <p>Can anyone please guide me if this would be the correct approach or is there any other alternative that can solve this problem?</p>
  <p>Thanks in advance</p>