Results 1 to 4 of 4

Thread: processes

  1. #1

    Thread Starter
    Addicted Member aturner's Avatar
    Join Date
    Nov 2000
    Posts
    179

    Question

    Can anybody help me.

    I have a program that is going to run about 600 command line operations. Each one is seperate. I need to limit the machines processes due to memory issues so would like to run only about 100 at a time. Is this possible and if so, can someone help.

    Greatfully
    Alex.
    Due to the energy crisis, the light at the end of the tunnel has been turned off.
    Sorry for any inconvenience this may cause

  2. #2
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    Use loops :
    Code:
    For i = 1 to 100
       'first process here
    Next i
    
    For i2 = 1 to 100
       'Second process here
    Next i
    Etc. The second won't start until the first has finished.
    (BTW - use a doevents in there too)!

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  3. #3

    Thread Starter
    Addicted Member aturner's Avatar
    Join Date
    Nov 2000
    Posts
    179

    Unhappy not quite that easy

    Its all running in a while loop and has two stages, after further thaught i have decided that it would be easyer to monitor shelled app and wait for that to finnish bofore i start the next step.

    If anyone knows how to do that i would be greatful.

  4. #4
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    Any chance of posting some of the code to give me an idea of what you're trying please ?

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width