RETIRER MON NOM SUR LA LISTE DE DISYTIBUTION SVP
JE NE SOUHAITE PAS RECEVOIR VOS EMAILS


Bonne réception

Cordialement - Best/Regards


Anatole-Didace PEA ELEE
Location city:  La Gaude
Office B3 2E-104
BP 48
IBM -France La Gaude,
 06610 Plan du bois La Gaude
Tél: 04.92.11.53.07  int 36.53.07
Email: [EMAIL PROTECTED]


                                                                           
             "Brian Raven"                                                 
             <[EMAIL PROTECTED]                                             
             rketsolutions.com                                          To 
             >                         <[EMAIL PROTECTED] 
             Sent by:                  m>                                  
             activeperl-bounce                                          cc 
             [EMAIL PROTECTED]                                             
             State.com                                             Subject 
                                       RE: spawning children               
                                                                           
             26/10/2005 11:53                                              
                                                                           
                                                                           
                                                                           
                                                                           




[EMAIL PROTECTED] <> wrote:
> Mr. Scott-
>
> unfortunately that gives a slight issue with binary increase rather
> than a number (most) humans would work out in their mind.
>
>
> Mr. Raven-
>
> maybe i should hold off on sending this... I got an idea to use & and
> see
> what that does with system from that. however...
>
> on windows that previous code creates a bunch of boxes so you know how
> many children are running. it also creates load - 1 children, an easy
> to
> determine number.
>
> using this test script:
>
> ******************** code separator ********************
> #! /usr/bin/perl
> use strict;
>
> my $many = @ARGV[0];
> my $done=0;
>
> print "test: many is $many\n\n";
>
> while($done < $many){
> #  exec "$0 0"; # kills this to create a new one
> #  system "$0 0"; # creates new one with return to this one, not
> terminal? #  `$0 0`; # creates new one and waits on return to this
> one? #  fork; # creates binary progression (0->1; ... 10 -> 1024; ...
> 20 ->1048576 ...)
>
>   $done++;
> }
> print "hello world\n";
> __END__
> ******************** code separator ********************
>
> i found fork makes numbers that most can get some of fast, but even i
> cant
> really do past 20 with ease in my head (yes i know i'm a mathematical
> freak. try asking me things i know how to apply to reality in my
> sleep.
> based on a joke, my sister when we were younger, did once, sadly i
> spit
> out the answer practically as soon as the question is finished with an
> accuracy that.. well i got all the questions right that she
> asked....and
> after college, i'd only call myself mediocre (sp?) at math.) so i'm
> trying
> to look for something that will create one child with each pass. i
> dont
> mind them being background, just as long as a human that doesnt know
> better can look and know immediately they are running.

If you want sub processes to be run in a separate terminal window on a
Unix-like OS, then you have to ask for it. For example:

system "xterm -e $command";

Although I don't think that that is a good way to identify how many
sub-processes exist, unless the number is pretty small. If it is
important to know how many sub-processes exist then the means to
determine that should be part of the design.

Also, from you test script it looks like you do not understand what fork
does.

HTH

--
Brian Raven


=================================
Atos Euronext Market Solutions Disclaimer
=================================
The information contained in this e-mail is confidential and solely for the
intended addressee(s). Unauthorised reproduction, disclosure, modification,
and/or distribution of this email may be unlawful.
If you have received this email in error, please notify the sender
immediately and delete it from your system. The views expressed in this
message do not necessarily reflect those of Atos Euronext Market Solutions.

L'information contenue dans cet e-mail est confidentielle et uniquement
destinee a la (aux) personnes a laquelle (auxquelle(s)) elle est adressee.
Toute copie, publication ou diffusion de cet email est interdite. Si cet
e-mail vous parvient par erreur, nous vous prions de bien vouloir prevenir
l'expediteur immediatement et d'effacer le e-mail et annexes jointes de
votre systeme. Le contenu de ce message electronique ne represente pas
necessairement la position ou le point de vue d'Atos Euronext Market
Solutions.


_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs



_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to