monsterQueriesToSameCluster
上传用户:quxuerui
上传日期:2018-01-08
资源大小:41811k
文件大小:1k
源码类别:

网格计算

开发平台:

Java

  1. #!/usr/bin/env bash
  2. GRID_DIR=`dirname "$0"`
  3. GRID_DIR=`cd "$GRID_DIR"; pwd`
  4. source $GRID_DIR/../gridmix-env
  5. PROCESSES=""
  6. for ((i=0; i < $NUM_OF_SMALL_JOBS_PER_CLASS; i++))
  7. do
  8.     echo $i
  9.     $GRID_MIX_HOME/monsterQuery/monster_query.small  2>&1 > monster_query.small.$i.out &
  10.     PROCESSES="${PROCESSES} $!"
  11.     $GRID_MIX_HOME/submissionScripts/sleep_if_too_busy
  12. done
  13.     
  14. for ((i=0; i < $NUM_OF_MEDIUM_JOBS_PER_CLASS; i++))
  15. do
  16.     echo $i
  17.     $GRID_MIX_HOME/monsterQuery/monster_query.medium  2>&1 > monster_query.medium.$i.out &
  18.     PROCESSES="${PROCESSES} $!"
  19.     $GRID_MIX_HOME/submissionScripts/sleep_if_too_busy
  20. done
  21. for ((i=0; i < $NUM_OF_LARGE_JOBS_PER_CLASS; i++))
  22. do
  23.     echo $i
  24.     $GRID_MIX_HOME/monsterQuery/monster_query.large  2>&1 > monster_query.large.$i.out &
  25.     PROCESSES="${PROCESSES} $!"
  26.     $GRID_MIX_HOME/submissionScripts/sleep_if_too_busy
  27. done
  28.     
  29. for APROC in ${PROCESSES}; do
  30.   wait ${APROC}
  31. done