anyone know about pthread_delay_np() function??

H

hongky

"pthread_delay_np" function can make a thread sleep, but it is a function in
Unix
and not POSIX, so i did not compile my code...what to do for me??
i just want to make a sleep for the thread,
RedHat Linux thread lib has not pthread_delay_np function, how to do? thx.
 
J

Jack Klein

"pthread_delay_np" function can make a thread sleep, but it is a function in
Unix
and not POSIX, so i did not compile my code...what to do for me??
i just want to make a sleep for the thread,
RedHat Linux thread lib has not pthread_delay_np function, how to do? thx.

Why are you asking here, it has nothing to do with the C language at
all. It is not a standard function, so your question has nothing to
do with the language.

If you want to ask about Linux programming, ask in

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++ ftp://snurse-l.org/pub/acllc-c++/faq
 
C

CBFalconer

hongky said:
"pthread_delay_np" function can make a thread sleep, but it is a function in
Unix
and not POSIX, so i did not compile my code...what to do for me??
i just want to make a sleep for the thread,
RedHat Linux thread lib has not pthread_delay_np function, how to do? thx.

thread, pthread, Unix, POSIX, sleep are all not described by the C
standard. Thus they are non-portable, and off-topic in c.l.c.
Find a group dedicated to your system, or possibly threads.
 
H

hongky

sorry, bcoz nobody reply my topic:(

Jack Klein said:
thx.

Why are you asking here, it has nothing to do with the C language at
all. It is not a standard function, so your question has nothing to
do with the language.

If you want to ask about Linux programming, ask in

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++ ftp://snurse-l.org/pub/acllc-c++/faq
 
C

Christopher Benson-Manica

Jack Klein said:
If you want to ask about Linux programming, ask in
news:comp.os.linux.development.apps.

Or comp.programming.threads, or whatever that group is...
 
E

emerth

hongky said:
"pthread_delay_np" function can make a thread sleep, but it is a function in
Unix
and not POSIX, so i did not compile my code...what to do for me??
i just want to make a sleep for the thread,
RedHat Linux thread lib has not pthread_delay_np function, how to do? thx.

Try comp.programming.threads instead.
They talk about posix threads there.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top