monte-carlo for pi with POSIX queue