Pthreads on IRIX 6.4 question?
X-Mozilla-Status2: 00000000 bhalchin@hotmail.com wrote: > > Hello, > > I am having problems with Pthreads on IRIX 6.4. I have two > threads: the initial thread plus one that has been pthread_created. > The pthread_created pthread does an ioctl and sits in a driver waiting > for an > event. While this is happening the “initial” thread should be eligible > to run, but it is put to sleep, i.e. doesn’t run. Why? On IRIX, what > kind of LWP notion > is there? Defaul scheduling scope is process on IRIX 6.4, and the number of execution vehicles is determined by the pthread library — typically, you’ll start with one execution vehicle unles sthe library detects all your threads can run in parallel and consume CPU resources. But the latest pthread patches for IRIX 6.4 would, in my experience, create an extra execution vehicle on the fly in the case you describe, so I’d certainly recommend you to get the *LATEST* set of POSIX recommended patches. You can, in 6.4, use pthread_setconcurrency to gi