Jump to content

tullies

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Everything posted by tullies

  1. thank u very much kicken and DavidAM for helping me out. real appreciate , u guys have helped me big time..i was stuck and didnt have a way to go any further..thnx alot!
  2. thanks DavidAM, i think ths i sthe best way to go..i have also been adviced by collugue to use that php function.. let me dig.. i would appreciate if u wuld share ur implementation with pcntl_fork() to avoid been kicked by my web_host
  3. its a requirement, that user submit them and specify time that it will be executed.
  4. thanks for reply @chrisdburns. Its web application, hosted some where, cant run C in there.. i have no trouble witht php that run forever coz i use sleep() in my do, while(true) if there is no task..if there is task it reads..thankx
  5. I have a scenario in PHP, i need a smart way: 1. I run one process on background forever, scheduler.php - done 2. User on the web submit their task in DB to be processed by the above process(scheduler.php) - done 3. scheduler.php read the db after every 1 sec, looking for user's task. Problem: Ideally, if it founds like 10 or more tasks it should process them concurently(in parallel)..i.e it should not wait one task to be fully executed so as to run the next one as one task might take a very long time to be fullu executed. I would do like exec("nohup php <path>/file_name.php >> /dev/null 2>&1 &"), but if i have alot of tasks this will create zombie processes. Any smart way to do this will be highly appreciated!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.