计算机科学中共识和交易之间的关系是什么?

问题描述

wiki 上的一句话让我很困惑,声称 2pc 是一种特殊类型的共识。

Two-phase_commit_protocol

In transaction processing,databases,and computer networking,the two-phase commit protocol (2PC) is a type of atomic commitment protocol (ACP). It is a distributed algorithm that coordinates all the processes that participate in a distributed atomic transaction on whether to commit or abort (roll back) the transaction (it is a specialized type of consensus protocol)

据我所知,共识的目的是在系统的不同方面决定一个变量的值,而交易可能会确保多个变量的值。如果我是对的,那么共识算法应该是交易的一个子集。为什么相反??

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...