Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 28th, 2008, 11:52 AM   #1
core8583
Newbie
 
Join Date: Apr 2008
Posts: 2
Rep Power: 0 core8583 is on a distinguished road
Not sure how to do this. Can anyone help?

I need to create a program that tells me the most effective way to run some processes.

Each process has a

* Load delay
* Amount of data it outputs.


Only one process can be loading at any time, So Processes can't begin to load during another processes load delay. But can output at the same time.

I needs a script the tells me in which order to load the process to get the data back as quick as possible, in the shortest amount time.

I been thinking about how i would write this script but i'm coming up blank, can anyone help?
core8583 is offline   Reply With Quote
Old Apr 28th, 2008, 11:59 AM   #2
OpenLoop
Expert Programmer
 
OpenLoop's Avatar
 
Join Date: May 2005
Location: East Lansing, MI
Posts: 647
Rep Power: 4 OpenLoop is on a distinguished road
Re: Not sure how to do this. Can anyone help?

Try calculating how much data per second each process can load (Amount of data/Load delay assuming the load delay is the total amount it takes to load the amount of data the process holds). You can then use that ratio to sort the processes in ascending order.
OpenLoop is offline   Reply With Quote
Old Apr 28th, 2008, 12:48 PM   #3
core8583
Newbie
 
Join Date: Apr 2008
Posts: 2
Rep Power: 0 core8583 is on a distinguished road
Re: Not sure how to do this. Can anyone help?

Quote:
Originally Posted by OpenLoop View Post
Try calculating how much data per second each process can load (Amount of data/Load delay assuming the load delay is the total amount it takes to load the amount of data the process holds). You can then use that ratio to sort the processes in ascending order.
I'm not quite sure what you mean, i already know the amount of time it takes for the process to long, do you mean just load them in order of load time, the shortest load time being first and the longest being last?

As this takes 19 seconds to get all the data back from the processes.

I have put the output into a excel sheet and i can see a way to order these process so that they can load in 16 seconds.



As a note, when the process turns green (in the image) the process has release resources that are needed to load another process, but will still take time to output all of it's data. sometime in bursts because of a timer within the process.
core8583 is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 12:03 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC