Learn English – Does code run in or on a thread

computingprepositionsword-choice

Any programmers around? Which of the following is correct, or more common:

  • The code runs in a background thread.
  • The code runs on a background thread.

That's it. Just a simple word different.

As an alternative, the code might also be executed in/on a thread, if that makes a difference.

Best Answer

In a thread (but on a server or an OS), in my experience as a programmer.