On 31 Dec 2005 22:11:29 -0800, "clayne" <> wrote in
comp.lang.c:
> The correct place would be to ask in comp.programming.threads.
The correct place to ask WHAT??
This group is littered with instructions on how to quote properly,
even if you are using the idiot broken Google groups interface. Like
Microsoft before it, Google is not going to succeed in redefining
email and usenet etiquette at its whim.
> Jack, <pthread.h> refers to POSIX threads, not Linux threads.
Part of the OP's original post, which I quoted and you failed to
quote, along with everything else in my reply, was:
> // This example tries to show the use of pthreadss,
> // it only runs on Linux, because of the pthread.h
> // header file.
Kindly read the three lines above, carefully. Especially the middle
one. Perhaps the OP's Linux distro (and which one is it, with which
kernel?) implements POSIX threads in a 100% conforming manner. Perhaps
not, I've seen quite a few failures of true POSIX conformance in
various Linux distributions over the years.
Note that the C language doesn't know or care whether Linux pthreads
are POSIX conforming. The OP asked for help with a program that in
his own words he wants to run only on Linux, the proper redirection is
to news:comp.os.linux.development.apps, just as I said.
If the Linux application experts think he would be better off in
news:comp.programming.threads, they will tell him so.
--
Jack Klein
Home:
http://JK-Technology.Com
FAQs for
comp.lang.c
http://c-faq.com/
comp.lang.c++
http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html