Cutera Interview Question

How do you ensure critical sections (uninterruptible execution) when building on an RTOS platform?