in reply to Re^2: Threads memory consumption is infinite
in thread Threads memory consumption is infinite

hopefully that was a coherent thought

heh heh :-)


I'm not really a human, but I play one on earth CandyGram for Mongo
  • Comment on Re^3: Threads memory consumption is infinite

Replies are listed 'Best First'.
Re^4: Threads memory consumption is infinite
by Godsrock37 (Sexton) on Jun 10, 2008 at 17:23 UTC

    I'm looking over my algorithm and you're comment and I'm wondering if it would be better to do the following:

    sub main_loop { while( schedule_count() and $hit_count < $hit_limit #could be commented out and time() < $expiration and ! $QUIT_NOW ) { #yield(); my $parser_thread1 = async { process_url( next_scheduled_url() );} +; } return; }

    ... rather than have the 20 static threads that loop forever, each thread would exit like the mysql threads which seem to be working fine

Re^4: Threads memory consumption is infinite
by Godsrock37 (Sexton) on Jun 10, 2008 at 17:09 UTC

    thats what i said :)