For the following two schedules, insert the appropriate locks (shared and exclusive) into theschedule following the Strict 2PL protocol. Also explain what happens as the scheduler executeseach schedule. Note that, if a transaction blocks because of an operation, the transaction withthe next operation in the schedule will continue. When a transaction unblocks, it resumes itsoperations. Write the actual executed schedule.(a) R1(A);R2(B);R3(C);W1(B);W2(C);W3(D);(b) R1(A);R2(B);R3(C);R1(B);R2(C);R3(A);W1(A);W2(B);W3(C);