Questions mp
- What's pthreads? Hint:
man pthreads
.
- Which header files do you have to include in order to use pthreads?
Hint:
man pthread_create
.
- Do you need any CFLAGS to use pthreads?
- How do you create a pthread?
- What is "thread-safe"? Hint:
man pthreads|grep safe
.
- Is
rand
thread-safe? Hint: man rand_r
.
- What happens if you forget to join a joinable thread?
Hint:
man pthread_join
and read the NOTE.
- What's OpenMP?
- Does your compiler supports OpenMP?
- What are the CFLAGS and LDLIBS for OpenMP?