char pname[5]; //进程名
int deadtime; //周期
int servetime; //执行时间
//周期进程某一次执行到停止的剩余需执行时间(考虑到抢占),初始为deadtime
int lefttime;
int cycle; //执行到的周期数
//进程最近一次的最迟开始执行时间,- currenttime 即为松弛度
int latestarttime;
//进程下一次最早开始时间
int arivetime;
int k; //k=1,表示进程正在运行,否则为0,表示进程不在执行期间
/*
若存在最小松弛度进程个数多于1个,
则采用最近最久未使用算法
采用一计数器LRU_t
*/
SHOW FULL COLUMNS FROM `jrk_downrecords` [ RunTime:0.000967s ]
SELECT `a`.`aid`,`a`.`title`,`a`.`create_time`,`m`.`username` FROM `jrk_downrecords` `a` INNER JOIN `jrk_member` `m` ON `a`.`uid`=`m`.`id` WHERE `a`.`status` = 1 GROUP BY `a`.`aid` ORDER BY `a`.`create_time` DESC LIMIT 10 [ RunTime:0.064129s ]
SHOW FULL COLUMNS FROM `jrk_tagrecords` [ RunTime:0.001013s ]
SELECT * FROM `jrk_tagrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 20 [ RunTime:0.001227s ]
SHOW FULL COLUMNS FROM `jrk_member` [ RunTime:0.000890s ]
SELECT `id`,`username`,`userhead`,`usertime` FROM `jrk_member` WHERE `status` = 1 ORDER BY `usertime` DESC LIMIT 10 [ RunTime:0.003148s ]
SHOW FULL COLUMNS FROM `jrk_searchrecords` [ RunTime:0.000823s ]
SELECT * FROM `jrk_searchrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 5 [ RunTime:0.003703s ]
SELECT aid,title,count(aid) as c FROM `jrk_downrecords` GROUP BY `aid` ORDER BY `c` DESC LIMIT 10 [ RunTime:0.014931s ]
SHOW FULL COLUMNS FROM `jrk_articles` [ RunTime:0.001217s ]
UPDATE `jrk_articles` SET `hits` = 2 WHERE `id` = 266644 [ RunTime:0.014395s ]