pthread exam