设计一个有N个进程并发的进程调度程序。
进程调度算法:采用最高优先数优先的调度算法(即把处理机分配给优先数最高的进程)算法。
-Design of a concurrent process, N a process scheduler. The process of scheduling algorithm: The number of priority the highest priority scheduling algorithm (ie the number of processors allocated to the highest priority to the process) algorithm.
SHOW FULL COLUMNS FROM `jrk_downrecords` [ RunTime:0.000965s ]
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.072230s ]
SHOW FULL COLUMNS FROM `jrk_tagrecords` [ RunTime:0.000967s ]
SELECT * FROM `jrk_tagrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 20 [ RunTime:0.001332s ]
SHOW FULL COLUMNS FROM `jrk_member` [ RunTime:0.001104s ]
SELECT `id`,`username`,`userhead`,`usertime` FROM `jrk_member` WHERE `status` = 1 ORDER BY `usertime` DESC LIMIT 10 [ RunTime:0.003194s ]
SHOW FULL COLUMNS FROM `jrk_searchrecords` [ RunTime:0.000929s ]
SELECT * FROM `jrk_searchrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 5 [ RunTime:0.003604s ]
SELECT aid,title,count(aid) as c FROM `jrk_downrecords` GROUP BY `aid` ORDER BY `c` DESC LIMIT 10 [ RunTime:0.014839s ]
SHOW FULL COLUMNS FROM `jrk_articles` [ RunTime:0.001137s ]
UPDATE `jrk_articles` SET `hits` = 2 WHERE `id` = 201382 [ RunTime:0.013106s ]