Strange Behavior That I cann't understand

That is should do printf before enter os_manager