I set the councurrency level 10 byHmmm, your problem is not related to the kernel.
pthread_setconcurrency(10) and started 10 threads to
accomplish some task but the result showed that It was
performed by the 1st thread only and others just
exited blankly. It means others except the 1st thread
didnt get the CPU. But, I dont kno what went wrong though I used the
pthread_setconcurrency() function...I am usin kernel
v2.4.21.8 on INTEL p4 with RHEL OS. I had also added
lpthread library while compiling.
Please help me out...Thanx in advance...
Regards,
You're using a user library :p
But you should'nt use pthread_setconcurrency() on Linux.
It's only used in n to n threads OSes (like Solaris). Juste create your threads and it will work.
-- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/