Hotplate OpenMP implemented with pthreads