Next:
Find out where the
Up:
Assignment 4: Multi-threaded Programs
Previous:
Assignment 4: Multi-threaded Programs
Run the program
1.
Pick up the pthread program from
http://rocky.colby.edu/cs357/code/hw4/pthread.c
Study it carefully and print the man pages for the new system calls.
2.
Write a Makefile for the program. In order to use the
pthread
library, you have to tell the compiler to link to is, using the
-l
option:
gcc -o pthread pthread.c -lpthread
Compile and run the program.
Allen Downey
2000-03-06