Lost-Update-Problem in Concurrent schedules

In a schedule, if update performed by transaction T1 on data item ‘X’ gets overwritten by the update performed by transaction T2 on same data item ‘X’, then we say that update of T1 is lost to the update of T2.

This problem is known as Lost-Update-Problem in concurrent schedules.


with X = 50 and Y =50 (initial values)

T1 T2
read(x) (T1I1)
x=x+10 (T1I2)
read(x) (T2I1)
x=x+20 (T2I2)
write(x) (T1I3)
read(y) (T1I4)
write(x) (T2I2)
commit (T2I2)
y=y+10 (T1I5)
write(y) (T1I6)
commit (T1I7)

Explanation: Continue reading

Serial Schedules, Concurrent Schedules and Conflict Operations

A schedule is the representation of execution sequence for all the instructions of the transactions.

Schedules are categorized in two types:

  • Serial Schedules
  • Concurrent Schedules

Serial Schedules:

A schedule is said to be serial if and only if all the instructions of all the transactions get executed non-preemptively as an unit.


Each serial schedule consists of a sequence of instructions from various transactions, where the instructions belonging to one single transaction appear together in that schedule. Continue reading

Concurrent Executions in Transaction

Transaction-processing systems usually allow multiple transactions to run concurrently. Allowing multiple transactions to update data concurrently causes several complications with consistency of the data.

Ensuring consistency in spite of concurrent execution of transactions requires extra work; it is far easier to insist that transactions run serially—that is, one at a time, each starting only after the previous one has completed.

However, there are two good reasons for allowing concurrency: Continue reading

How Google knows everything about you

In current days data is very important thing than money. Hackers tries to stole your data. Many companies working to keep track your data.As all of us knows Google keeps your data… Ok it’s fine… bcz its secured i think. but, for to know Google how much know about you see below.. History – Google […]

via How Google knows everything about you — bewithdhanu

Difference between Normalization and Normal Forms


Normalization is the systematic process applied on the relations to reduce the degree of redundancy.

Normalization is defined as systematic because it always gives guarantee for following properties –

  • Lossless decomposition.
  • Dependency preservation.

Continue reading

Convert local path to UNC (Universal) File Path using Java Script ActiveXObject


function getUNCPath() {
 var filePath = document.getElementById("uploadedFile").value;

var WshNetwork = new ActiveXObject("WScript.Network"); 
 var Drives = WshNetwork.EnumNetworkDrives(); 
 for (i = 0; i < Drives.length; i += 2) {
 if(Drives.Item(i) != "")
 filePath = filePath.replace(Drives.Item(i), Drives.Item(i + 1)); 


<form onsubmit="getUNCPath()">
<input type="file" id="uploadedFile"/>
<input type="submit" value="Get the UNC Path!" />

in razor view engine add the following line to support ActiveXObject:

@using System.Web.Script.Serialization