update mjthread