I have always thought until just before that a verb should come before the subject only in questions, for example:
Is this idea correct?
But I was just reading a book ("Operating System Concepts" by A. Silberschatz and others, 9th ed., chapter 6.3.6), which says:
Only when queue 0 is empty will it execute processes in queue 1.
Why does "will" come before "it" in the sentence above?
Could I have said:
Only when queue 0 is empty it will execute processes in queue 1.
Is there any difference between the two?