Re: problem in pthrad_setconcurrency

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jaydeep Chokshi wrote:
I set the councurrency level 10 by
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,
Hmmm, your problem is not related to the kernel.
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/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux