parser pthread