SPUG: question on fork()
Sean Dwyer
oladar at drizzle.com
Fri Feb 22 21:53:33 CST 2002
I realised in re-reading this that I left out a few to many details. I am
working on HPUX/Linux while I am doing this so I can use POSIX. The child
processes will connect to a database do there work and then close quietly of
error out into the sql servers error logs where they can be picked up later
and dealt with. All I am really concerned with here though is the
controlling processes for the threads.
Sean
-----Original Message-----
From: owner-spug-list at pm.org [mailto:owner-spug-list at pm.org]On Behalf Of
Sean Dwyer
Sent: Friday, February 22, 2002 7:47 PM
To: Spug
Subject: SPUG: question on fork()
All,
What I am trying to do is iterate through a list (call it 100 items for
sake of argument) 5 at a time. I can fork off the initial 5 processes but is
it possible to, as a processes finishes, spawn a new proceses to handle the
next item in the list. Everything I have tried so far isn't working. ANy
advice would be great.
thanks,
Sean Dwyer
Oladar Computer Services
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
POST TO: spug-list at pm.org PROBLEMS: owner-spug-list at pm.org
Subscriptions; Email to majordomo at pm.org: ACTION LIST EMAIL
Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
For daily traffic, use spug-list for LIST ; for weekly, spug-list-digest
Seattle Perl Users Group (SPUG) Home Page: http://seattleperl.org
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
POST TO: spug-list at pm.org PROBLEMS: owner-spug-list at pm.org
Subscriptions; Email to majordomo at pm.org: ACTION LIST EMAIL
Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
For daily traffic, use spug-list for LIST ; for weekly, spug-list-digest
Seattle Perl Users Group (SPUG) Home Page: http://seattleperl.org
More information about the spug-list
mailing list