???????????????5000??????????蔚???????????????????????校???????????????????????6%?????????????????????????????????????????校??????????????????????????????????????6%???????????????????????????????????

?????????????写??????????

#include <VU.h>
#include <cvicse.h>
{
string logger;
//???????????????????????
shared t_start??t_end;
int t??t_zong;
//???????榘�????????卸????????????id_yw;
shared num_yw??num_yw1;
//????????????????????id
int id_yw;
//????????????????id
shared id_next??share;
int num_zong?? num_binf;
//?瓒╳ait???????
int time_out;

//??????????????????????2???????????????
num_zong = _nusers;
num_binf = (_nusers*3)/10;

//?瓒╳ait????????????????????????????????????????session???效???
time_out = (_nusers)*3000;

//t_zong?????????????????????????????1200  60??60??1000
t_zong = (_nusers)*3000;

//?????????????????
//delay((_uid)*500);
share = num_binf;

//??????
num_yw1++;
id_yw = num_yw1;
t_start = start_time["yw_time"];
 

do{
    num_yw++;
 
   //????畏???????????id_yw???小?????????????????????????????????id_yw??????????????
    if(num_yw > num_binf)
    {
    //???????????????????????????胁?????????????????????????id??????????????????????????????????????????
    wait(&id_next??id_yw??id_yw??0??time_out);
    if(wait(&id_next??id_yw??id_yw??0??time_out) == 0)
    {
        //break;
        //script_exit("");
        user_exit(-1?? "Fatal Error - Aborting");
    }
    //?????????卸??????????????睢�0???????????????????????suite???????????????????
    //?????????????????????????????????????????????????????????????
    //delay(id_yw*10000);
 
    }
    else
        {
        logger = "the yw is starting.....";
        writelog(logger);
        }
    //else??????????
 
    //??????????
    //???delay(8000)??????
    delay(8000);
    //???????????
 
    t_end = stop_time["yw_time"];    

    t = t_end - t_start;
    //???????????????????????????id?????????????next_id
    //id_next =  ((rand()) % num_zong )+1;
 
    share++;
    if(share<=num_zong)
    {
        id_next =share;
    }else{
        share = 1;
        id_next =share;
    }

    }while(t<t_zong);
}