I am working on a PHP script that instantiates three objects of the same class with different parameters. These objects in turn run methods for infinite duration (like a Cron Job), and hence, the next line or the 2nd never begins.
So if I have
$a = new CronJob('Listing', '2010-04-01T00:00:01', '2010-04-01T00:30:01', 'A', 'BUSO');
$s = new CronJob('Listing', '2010-04-01T00:00:01', '2010-04-01T00:30:01', 'S', 'BUSO');
$p = new CronJob('Listing', '2010-04-01T00:00:01', '2010-04-01T00:30:01', 'P', 'BUSO');
$s
is never executed since $a
is running for infinite duration
How can I get around this? I thought of running them in different scripts but I don't wanna make 3 * (#object types)
to run them simultaenously.