State and Status are both common terms in computing, and they have quite a bit in common. But if you're picky about the nuances, you can actually tease them apart.

  • Status: a state that describes the outcome of an operation (for example, 成功/失败).
  • State: a state that describes a stage within a process (for example, 等待, 执行中, 已完成, and so on).

State is commonly used in things like finite state machines (FSM). It typically refers to a step in an inevitable stage — for example, 自启动中 and 连接网络中 — whereas Status describes the "final state," i.e., "how the execution turned out."

In a set of tasks, each task may go through all of the values in the group 等待, 执行中, 已完成, but a task will typically enter only one of the values in 成功 or 失败, and is unlikely to switch between the two without external interference.

References