threads for persist and packet processing