???????????????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;
//?趨wait???????
int time_out;

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

//?趨wait????????????????????????????????????????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);
}