pthread_create returns EPERM
807567Apr 7 2004 — edited Jul 5 2004Hi
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