to implement real-world entities more and more in computer language and to protect datas we require c++.
c++ is basically an object oriented programming language.
there are special features which are not present in c such as data encapsulation,data abstraction,polymorphism,inheritance etc.
by encapsulation ,we can bind different data types in single unit.
by data abstraction ,we can protect our datas.
by polymorphism ,we can overload an operator.
and by inheritance,we can inherit the properties of the base class.
In a 2-phase commit protocol, there are two phases: prepare and commit. The coordinator asks all participants to prepare to commit, then all participants either agree or abort. In a 3-phase commit protocol, there are three phases: can-commit, pre-commit, and do-commit. This adds an extra phase to ensure better fault tolerance and improve the likelihood of reaching a decision.
The 2-phase commit (2PC) protocol is a distributed algorithm to ensure the consistent termination of a transaction in a distributed environment. Thus, via 2PC an unanimous decision is reached and enforced among multiple participating servers whether to commit or abort a given transaction, thereby guaranteeing atomicity. The protocol proceeds in two phases, namely the prepare (or voting) and the commit (or decision) phase, which explains the protocol's name.
2PC and 2PL are protocols used in conjunction with distributed databases. Both together are The two phase lock protocol (2PL) deals uniquely with the fact how are locks are acquired during a transaction whereas the two phase commit (2PC) protocol deals with the fact how do multiple hosts decide wether one specific transaction is written (commited) or not (abort). 2PL sais that first there is a phase where locks are (during a transaction) acquired (growth phase) and then there is a phase where the locks are beeing removed (shrinking phase). Once the shrinking phase started no more locks can be acquired during this transaction. The shrinking phase usually takes place after an abort or a commit phase in a typical database system. The essence of 2PC is that after a transaction is complete and should be commited a vote starts. Each node which is part of the transaction is asked to "prepare to commit". The node will then check wether a local commit is possible and if yes it votes with "ready to commit" (RTC) [Important: changes are not beeing written to the database at that point]. Once a node signaled RTC the system must be kept in a state where the transaction is allways commitable. If all nodes signal RTC the transaction the transaction master signals them a commit. If one of the nodes does not signal RTC the transaction master will signal abort to all local transactions.
A transaction that follows the 2PL protocol can be divided in to 2 phases. * Expanding phase-new lock on items can acquire but NONE can be released * shrinking phase-existing locks can be released but no new locks can acquire 2 Phase Lock may limit the amount of concurrency that can occur in a schedule.
there 3 assumptions about preferences 1.completeness 2.reflexive 3.transitive
TCP, the Transmission Control Protocol, is a layer-4 protocol (in the 7-layer OSI model).
IKE (Internet Key Exchange) is a protocol used to establish a secure and authenticated communication channel, typically for VPNs (Virtual Private Networks). It negotiates the encryption and authentication settings, authenticates the participants, and securely exchanges the keys used to encrypt communication. IKE operates in two phases: Phase 1 sets up a secure channel and Phase 2 establishes the actual secure connection.
Ethernet is a data link layer protocol - layer 2
Layer 2 Tunneling Protocol (L2TP)
The Write-Ahead Logging Protocol:Must force the log record for an update before the corresponding data page gets to disk.Must write all log records for a Xact before commit. #1 guarantees Atomicity.#2 guarantees Durability.
Well it has 2 meanings 1. file transfer protocol 2. If your George Lopez it means F*** that Puto!
PhASE 2