Older Contests
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP ContestsOlder Contests

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
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  
Old November 19th, 2002, 08:26 AM
gatopeich gatopeich is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Madrid, Spain / Boston, MA
Posts: 96 gatopeich User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 54 sec
Reputation Power: 2
Send a message via Yahoo to gatopeich
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()?

Reply With Quote
  #2  
Old November 20th, 2002, 01:16 AM
Matt Matt is offline
Moderator
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 10 m 20 sec
Reputation Power: 6
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??


Reply With Quote
  #3  
Old November 20th, 2002, 08:24 AM
gatopeich gatopeich is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Madrid, Spain / Boston, MA
Posts: 96 gatopeich User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 54 sec
Reputation Power: 2
Send a message via Yahoo to gatopeich
RE: RE: CPU power for the script

Quote:
Iy will run on a multi-processor box.

Well, I can count on great CPU power.
Quote:
time() returns a unix timestamp. will be the same no matter how many scripts are running??

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.

Reply With Quote
  #4  
Old November 24th, 2002, 12:23 AM
JRA JRA is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 22 JRA User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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 or maybe increase the max_execution_time a bit ;)
Failing that I'll resort to less 'refined' algorithms ;)

John Asplin (JRA)

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP ContestsOlder Contests > CPU power for the script


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway