Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

pthread_create returns EPERM

807567Apr 7 2004 — edited Jul 5 2004
Hi

Using SunOS Generic 5.8

I am writing a C# socket program and decided to use threads to help with Blocking system calls.

My programs calls pthread_create so the socket connect call can occur while my main program can keep processing.

My problem is when I do the pthread_create it fails with error EPERM.

void conn_client(void f_sd); // Thread routine
thread_t tid[NUM_THREADS]; // array of thread IDs */

main(int argc, char *argv[])
if (ret = pthread_create(&tid, NULL, conn_client, &sock) != 0))
{
Print the Error from pthread_create

I get EPERM if I run the program as a User or ROOT, any ideas?

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 2 2004
Added on Apr 7 2004
3 comments
696 views