Dynamics of thermalization of two tunnel-coupled one-dimensional quasicondensates