write through : in this technique cpu performs simultaneous write operation in both cache memory and main memory.
(T avg)read = Hr *Tc + (1-Hr)*(Tm+Tc) {here Hr :read hit }
and
(T avg)write = Hw * Tw + (1-Hw)*(Tm+Tw) {here Hw: write hit}
here Tw (word updation time) = max (word updation time in cache , word updation time in Main memory)
then
(T avg)write through = frequency of read operation * (T avg)read + frequency of read operation * (T avg)write