![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Newbie
Join Date: Apr 2008
Posts: 4
Rep Power: 0
![]() |
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? |
|
|
|
|
|
#2 |
|
Expert Programmer
Join Date: May 2005
Location: East Lansing, MI
Posts: 663
Rep Power: 4
![]() |
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.
|
|
|
|
|
|
#3 | |
|
Newbie
Join Date: Apr 2008
Posts: 4
Rep Power: 0
![]() |
Re: Not sure how to do this. Can anyone help?
Quote:
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. |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|