📜  传统和反应式计算机系统的区别

📅  最后修改于: 2021-09-13 01:59:34             🧑  作者: Mango

1. 传统计算机系统:
传统计算机系统从用户那里获取输入并计算输出作为输入的函数。它基本上计算输入的函数。

Output data = f(input data) 

例子:
如果 x 是输入,f 是某个函数,则 y(output) = f(x)

2. 反应式计算机系统:
反应式计算机系统从用户那里获取输入,但不产生作为输入函数的输出,而是与环境交互。在这种交互中,计算的结果用于对环境执行某些操作。

例子:
实时系统

传统和反应式系统的区别:

TRADITIONAL SYSTEM REACTIVE SYSTEM
Traditional system produces output as a function of input. Reactive system does not produce output as a function of input.
It does not interact with environment. It interacts with environment.
Computation in traditional system is terminating. Computation is reactive system is non-terminating.
Only one input is taken at a time. It may take several inputs at a time.
Results are not used to perform action on the environment. Results are used to perform action on the environment.
It takes input as data. It takes input as event.
Its structure is simple. Its structure is complicated.
The example of traditional system is simple calculator software. the example of reactive system is real-time systems.