-
最低松弛度优先算法
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
*/
- 2023-06-22 00:00:04下载
- 积分:1
-
在HGE1.81版本的基础上增加了对MFC的支持,可以方便地用它设计出各种工具类软件。tutorials中增加了tutorial03MFC作为MFC程序开发的示...
在HGE1.81版本的基础上增加了对MFC的支持,可以方便地用它设计出各种工具类软件。tutorials中增加了tutorial03MFC作为MFC程序开发的示例。-In HGE1.81 version based on the increased support of MFC, you can easily use it to design various types of software tools. has been added tutorials as tutorial03MFC sample MFC program development.
- 2022-10-21 17:40:04下载
- 积分:1
-
A relatively simple game code.
一个比较简单得游戏代码,-A relatively simple game code.
- 2022-02-16 04:55:00下载
- 积分:1
-
分形DCT
利用分形DCT图像压缩我准备这个代码来简化这些概念,并给你可以直接尝试的工具。当然,你可能会发现不同的方法,通过它可以提高代码的功能堆,所以请随时告诉我,任何此类更新,其余在这里。
- 2022-02-06 03:28:13下载
- 积分:1
-
stm32f4 ad波形采集用da接示波器
stm32f407 通过自带12位数的AD采集相应的波形,在通过DA还原,数据出来可通过连接示波器来显示波形,亲测可用,稳定良好。
- 2022-06-22 00:11:31下载
- 积分:1
-
Serial Communications (Windows API)
串口通信类(WINDOWS API)-Serial Communications (Windows API)
- 2022-01-27 20:26:40下载
- 积分:1
-
已知图的结点和权值,求初始结点到目标结点的最短路径
已知图的结点和权值,求初始结点到目标结点的最短路径-Known to map node and weight, find the initial node to the destination node of the shortest path
- 2022-05-19 01:41:02下载
- 积分:1
-
汤子瀛操作系统电子教案,这是他编的那本操作系统书配套的,对学操作系统的很好。...
汤子瀛操作系统电子教案,这是他编的那本操作系统书配套的,对学操作系统的很好。-the e-teaching plan opration system is belonged to tangziying,it is adapt to his opration system book,it is good for those who study the knowledge of operation system.
- 2022-01-25 18:07:31下载
- 积分:1
-
使用子
使用子像素的方法来减轻图像系统的负荷已经是目前主流3D程序中的必用方法。比如知道Sin函数的特性,就只需要计算0~pi/2的点就可以了,剩下的pi/2~pi可以通过子像素来画出,在图形量大的情况下可以减轻至少一半的系统压力。 这个程序不光可以加速Sin函数的显示,还可以加速所有函数的显示。 -The use of sub-pixel image of the ways to reduce the load on the system is already the existing procedures of the mainstream 3D methods will be used. For example, to know the characteristics of Sin function, we only need to calculate 0 ~ pi/2 could be the point, and the rest of pi/2 ~ pi can be sub-pixels to draw, in the graphic case of a large quantity can be reduced at least half of the system pressure. This process not only speed up the Sin function can be shown that all functions can also speed up the display.
- 2022-05-25 18:34:59下载
- 积分:1
-
k-means离群点检测
1算法思路
K-means算法
先随机选取K个对象作为初始的聚类中心。然后计算每个对象与各个种子聚类中心之间的距离,把每个对象分配给距离它最近的聚类中心。聚类中心以及分配给它们的对象就代表一个聚类。一旦全部对象都被分配了,每个聚类的聚类中心会根据聚类中现有的对象被重新计算。这个过程将不断重复直到满足某个终止条件。终止条件可以是以下任何一个:
1)没有(或最小数目)对象被重新分配给不同的聚类。
2)没有(或最小数目)聚类中心再发生变化。
3)误差平方和局部最小。
2算法步骤 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
- 2022-06-17 08:21:18下载
- 积分:1