|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
CPU power for the script
Matt,
What kind of processor will be running the scripts? Would you be so kind to let each script run alone so it can know how much CPU is has left by calling time()? |
|
#2
|
|||
|
|||
|
RE: CPU power for the script
Iy will run on a multi-processor box.
time() returns a unix timestamp. will be the same no matter how many scripts are running?? |
|
#3
|
||||
|
||||
|
RE: RE: CPU power for the script
Quote:
Well, I can count on great CPU power. Quote:
The timestamp is the same, but the 30 seconds of CPU power are not 30 clock seconds if there are N processes sharing the CPU. In that case the script will be fired in aprox 30*N seconds. Anyway, I have just learned about posix_times() and it shall help guessing the CPU left for my script. |
|
#4
|
|||
|
|||
|
RE: CPU power for the script
After spending today trying to get my algorithm's run time for 500 disks down from 140 seconds. I'm still only at around 32 seconds and this is on an XP2400!
I'm praying you have some sort of cray supercomputer to run this on Failing that I'll resort to less 'refined' algorithms ;) John Asplin (JRA) |
![]() |
| Viewing: Codewalkers Forums > PHP Contests > Older Contests > CPU power for the script |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|