This is a simple three-phase commit application coded in C