singleton mode & multithread in vector