![]() | |||
![]() | ![]() |
![]() |
![]() ![]() ![]() ![]() ![]()
|
![]() |
next newest topic | next oldest topic |
Author | Topic: pthread_create() or clone() |
dsbhagat![]() Member |
![]() ![]() ![]() ![]() ![]() In Q4 for the programming section are we supposed to use the clone system call to create new threads or can we use pthread_create. I tried compiling a program using pthread_create and pthread_join and it gave me an undefined refrence for the two functions probably because it says in the hw that It just seems from all the documentation on Pthreads in the assignment that pthread_create, pthread_join, pthread_mutex_lock, pthread pthread_mutex_t are the functions/identifiers to be used for this problem. I just do not know which header files they are located in. Any kind of help on this topic will be appreciated. Thanks in advance for your help. -Dhiraj IP: Logged |
rvg![]() Moderator |
![]() ![]() ![]() ![]() ![]() quote: My guess is that you forgot to specify the pthread library when you compiled with gcc. From one of the pages linked on the HW assignment: "gcc thread1.c -o thread1 -lpthread" Ravi IP: Logged |
All times are ET (US) | next newest topic | next oldest topic |
![]() ![]() |