How to use threads?

Discussion in 'Perl Misc' started by veg_all@yahoo.com, Jun 18, 2006.

  1. Guest

    Once a day my perl cgi script tars and zips up the customer data and
    ftps it to a backup server. The script takes around 10 seconds to do
    this but normally runs in less than a second. Is there a way I can use
    threads to do the tarring and ftping parallel with the main script
    execution?

    I read perlthrtut but my perl installation does not seem to support the
    functionality in it. Is there any workaround besides upgrading the perl
    installation?
     
    , Jun 18, 2006
    #1
    1. Advertising

  2. pyh Guest

    Hello,

    You don't need threads here.Just fork the childs and call the 'exec' to do
    the additional works in your CGI answers.

    <> ????
    news:...
    > Once a day my perl cgi script tars and zips up the customer data and
    > ftps it to a backup server. The script takes around 10 seconds to do
    > this but normally runs in less than a second. Is there a way I can use
    > threads to do the tarring and ftping parallel with the main script
    > execution?
    >
    > I read perlthrtut but my perl installation does not seem to support the
    > functionality in it. Is there any workaround besides upgrading the perl
    > installation?
    >
     
    pyh, Jun 18, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?bWFyZWFs?=

    The use of threads in a ASP.NET app.

    =?Utf-8?B?bWFyZWFs?=, Mar 3, 2005, in forum: ASP .Net
    Replies:
    11
    Views:
    491
    =?Utf-8?B?bWFyZWFs?=
    Mar 4, 2005
  2. yoda
    Replies:
    2
    Views:
    460
    =?utf-8?Q?Bj=C3=B6rn_Lindstr=C3=B6m?=
    Aug 1, 2005
  3. threads without threads

    , Aug 27, 2004, in forum: C Programming
    Replies:
    4
    Views:
    427
    William Ahern
    Aug 27, 2004
  4. Pedro Pinto

    Java Threads - Get running threads

    Pedro Pinto, Apr 8, 2008, in forum: Java
    Replies:
    2
    Views:
    1,474
    Arne Vajhøj
    Apr 9, 2008
  5. Une bévue
    Replies:
    0
    Views:
    172
    Une bévue
    Jun 14, 2006
Loading...

Share This Page