core data demo in multithread