multithread question# Unix - 噫吁兮,危乎高哉
z*c
1 楼
Hi, dear all:
after forking several threads, the main thread needs to
wait for some
time interval to continue.
1: I can not use Sleep() since it will make all threads
sleep.
2: when I use delay(), it needs another function to convert
seconds into ticks.
but when I compile it , it seems the compiler can not
reference to these functions, do I have to link it with some
libraries?
3: In some examples, I saw something like
pthread_deley_np(), but I cannot
find with man in my unix machine.
a
after forking several threads, the main thread needs to
wait for some
time interval to continue.
1: I can not use Sleep() since it will make all threads
sleep.
2: when I use delay(), it needs another function to convert
seconds into ticks.
but when I compile it , it seems the compiler can not
reference to these functions, do I have to link it with some
libraries?
3: In some examples, I saw something like
pthread_deley_np(), but I cannot
find with man in my unix machine.
a