After the event “TC sends <Prepare T1> to P1 and P2”, P1 decides to commit transaction T1. Which of the following is true about P1 with respect to 2PC protocol?
A. P1 sends <Ready T1> to TC and then writes <Ready T1> into its local log
B. P1 writes <Ready T1> into its local log and then sends <Ready T1> to TC
C. P1 sends <Ready T1> to TC and then writes <Commit T1> into its local log
D. P1 writes <Commit T1> into its local log and then sends <Ready T1> to TC
Answer:B
After the event “TC sends <Prepare T1> to P1 and P2”, P1 decides to commit transaction T1. Which of the following is true about P1 with respect to 2PC protocol?
A. P1 sends <Ready T1> to TC and then writes <Ready T1> into its local log B. P1 writes <Ready T1> into its local log and then sends <Ready T1> to TC C. P1 sends <Ready T1> to TC and then writes <Commit T1> into its local log D. P1 writes <Commit T1> into its local log and then sends <Ready T1> to TC