in reply to Thread creation failed: pthread_create returned 11

Go peruse man pthread_create but for your particular operating system.

Since I get "Resource temporarily unavailable" for $! = 11 on two rather different systems, there is a good chance that 11 means that on your system as well. And your version of the man page should explain much more explicitly what are the causes for that error reason.

- tye