????????о??????????????
???????????? ???????[ 2011/11/1 10:03:17 ] ????????
???????????????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);
}
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11