ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-win32-users
perl-win32-users
RE: Perl threads crash perl
by Michael Jung other posts by this author
Jul 30 2004 1:40PM messages near this date
view in the new Beta List Site
RE: pattern matching problem | Re: Perl threads crash perl
There is a compiled in limit of 100 threads in Win32 - I ran into this a
few weeks back.  Please see this thread.

http://www.perlmonks.org/index.pl?node_id=373409

--mikej

>  -----Original Message-----
>  From: perl-win32-users-bounces@[...].com
>  [mailto:perl-win32-users-bounces@[...].com] On
>  Behalf Of John Deighan
>  Sent: Friday, July 30, 2004 9:09 AM
>  To: perl-win32-users@[...].com
>  Subject: Re: Perl threads crash perl
> 
> 
>  Seeing as noone else has responded to this, let me simply say
>  that I tried
>  to develop an application using Perl threads, and in my opinion, Perl
>  threads are seriously broken. We had to re-write the
>  application without
>  threads.
> 
>  The main problem was that threads would die, but I found no
>  reliable way of
>  detecting this. Also, some advice I found on the web said that you
>  shouldn't create too many threads - they weren't designed for that.
>  However, there was no mention of what the limit might be, how
>  to determine
>  the limit, or how to discover whether thread creation
>  succeeded or failed.
>  All this means that if you want to create a couple of
>  threads, it should
>  (?) work, but beyond that, who knows?
> 
>  At 04:07 PM 7/29/2004, Nadjaf Kuliev wrote:
>  >When i tested my IIS vulnerability checker, it works
>  perfecly, but when I
>  >added multitasking support, it starts good, bit by bit cpu
>  noise increases
>  >then perl crases with unknown error. I didnt use fork(). I
>  used builtin
>  >Threads support with async{}. I dont want to make the code
>  public before
>  >first release so ill tell some details, if it wont help i
>  will email some of
>  >you who really wants to help the code. So here it is, the
>  main scripts gets
>  >all the vulnerability check, ie vulnerable file checks from
>  a file and tries
>  >them one by one on particular IIS webserver. Ony by one is
>  really slow, so I
>  >implemented threads. As you may know if it is checking the
>  webserver it
>  >surely will send HTTP requests for each vulnerable file. I
>  use IO::Socket
>  >only, not HTTP support modules.
>  >
>  >As far as i can guess, the reason for crash is most probably
>  not in the code
>  >  but in the perl, perl threads support particularly and how
>  interacts with
>  >my OS - windows 98.
>  >
>  >Any help is greatly appreciated. Thanks in advance.
>  >
>  >Respect, OkIDaN.
>  >_______________________________________________
>  >Perl-Win32-Users mailing list
>  >Perl-Win32-Users@[...].com
>  >To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
> 
>  _______________________________________________
>  Perl-Win32-Users mailing list
>  Perl-Win32-Users@[...].com
>  To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
> 
_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved