in reply to Thread creation failed: pthread_create returned 11
If you'd care to provide a runnable program -- that uses strict & warnings and compiles clean -- I'd be willing to take a look at the problem; but I'm not enamored to do so whilst your code contains errors like these:
C:\test>junk77 Global symbol "$message" requires explicit package name at C:\test\jun +k77.pl line 9. Global symbol "$msgQueue" requires explicit package name at C:\test\ju +nk77.pl line 9. Global symbol "$message" requires explicit package name at C:\test\jun +k77.pl line 12. syntax error at C:\test\junk77.pl line 15, near "4)" Global symbol "$message" requires explicit package name at C:\test\jun +k77.pl line 16. Bareword "processData" not allowed while "strict subs" in use at C:\te +st\junk77.pl line 12. Bareword "processData" not allowed while "strict subs" in use at C:\te +st\junk77.pl line 16. Execution of C:\test\junk77.pl aborted due to compilation errors.
Which when I attempt to fix them in the obvious way results in this error:
C:\test>junk77 Can't locate object method "poll" via package "Thread::Queue" at C:\te +st\junk77.pl line 12.
On the basis on what you've posted, I cannot see how you could ever get the error message you cite.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Thread creation failed: pthread_create returned 11
by kamrul (Acolyte) on Aug 11, 2015 at 16:32 UTC | |
by BrowserUk (Patriarch) on Aug 11, 2015 at 18:30 UTC |