edited by
1,669 views
1 1 vote

IN these questions , in T1  it will read value  of A from hard disk or local buffer and W(A) when execute it will make change in local buffer or hard disk , are w(A) and commit are same because commit means we stored data in hard disk anyone explain plz in detail

1 Answer

Best answer
1 1 vote
commit and w(a) are not same

w(a) means saving data somewhere(hard disk or local buffer) but if system fails that data is loss, but commit means saving as well as making an entry in log record  of database and replicating value in all servers throughout network so just in case there is failure in any of servers it copy will exist. also unless commit if performed there is no guarantee that ACID property will be maintained.

In simple word commits means changes performed are permanent and W(a) means change is temporary.

Example

Suppose there is only one transaction, you want to someone Rs 100 form your bank account, money has been deducted from your account, and successfully reached to person account, but if this transaction is not committed both you and another person won't see any change in your account. as soon as transaction is successfully committed both will have new updated balance in account
selected by
Position:
Show:

Related questions

3 3 votes
2 2 answers
7.1k
7.1k views
pream sagar asked Jun 1, 2018
7,147 views
If schedule is Serializable then free from WW, RW,WR .But Lost update may be possible .please explain how in serializable schedule lost update problem still exist.
1 1 vote
1 1 answer
2.5k
2.5k views
rahul sharma 5 asked Jul 15, 2017
2,463 views
Consider thw following schedules :-S1 :- W1(A) W2(A) W1(B) W2(B)S2:- W1(A) R2(A) W2(A) W2(B) W1(B)Assume that schedule S1 is failed after performing W1(B). Which of the f...
0 0 votes
3 3 answers
3.2k
3.2k views
rahul sharma 5 asked Jan 7, 2017
3,173 views
W1(A),R2(A),W2(A),W2(B),W1(B)This schedule has WW conflict but not Lost update problem,Please explain why?Is it possible to have WW conflict without lost update?