Description: 1)程序主界面可选择进程调度算法进行演示,其中调度算法包括:时间片轮转法,短作业优先算法,动态优先级算法。
2)然后进入子界面可选择进程数量和输入进程运行所需要的时间。
3)每个进程的优先数由随机函数产生且优先数随等待时间而变化,执行并显示结果。
-1) The program can choose the main interface shows the process of scheduling algorithm, scheduling algorithm which includes: Round-Robin time slice, short job first algorithm, dynamic priority algorithm. 2) and then choose to process into the sub-interface number and enter the time required to run the process. 3) the priority of each process, the number of priority by the random function and the number of changes with the wait time, execute and display the results. Platform: |
Size: 8192 |
Author:代浩 |
Hits:
Description: 最新版本MicroStar1.1不仅能支持按优先级调度,还支持时间片轮转调度和前二者相接合调度。
声明 代码未经严格测试,现仅作学习和交流用途,不得利用其作任何商业目的的开发。擅自使用之进行商业开发,所造成的后果由自已承担,本人不负任何法律上的责任。
使用需知
1. MicroStar1.0最多只能创建16个任务。最多可提供16个定时器。最多能直接提供16个同步对象,若要更多的同步对象,须自行分配内存。
2 为了使代码能在DOS下运行,不少函数声明和定义前都有_FAR宏,以使所有函数都可以通过在os_type.h中添删FAR_MODE宏来编译成远调函数还是近调函数。随演示程序提供的是在小模式下编译的obj文件,不必关心_FAR。
3 部分函数,结构体在DOS下必须使用 far 指针,移植时只需在os_type.h中添加一条-----#define far
4 此手册并不专对PC机编写,因而有些函数的原型与PC机源码不符,请读者注意。
5 调试版本中内核调用用户编写的os_WARNINGE 和 os_ASSERT校验函数,可参考演示程序中的other.c文件。出错类型和警告类型可在os_macro.h中查的。-Not only can support the latest version MicroStar1.1 by priority scheduling, also supports round-robin scheduling and dispatching former two engagement.
Declaration code without strict testing, is solely for learning and communication purposes, not for any commercial purpose use of its development. Unauthorized use for commercial development, the consequences of the self-commitments, I assumes no legal responsibility.
Using Notes
1. MicroStar1.0 can create a maximum 16 tasks. Provides up to 16 timers. Up to 16 synchronous object directly, to more synchronization objects at their own memory allocation.
2 To make the code can be run under DOS, and many function declarations and definitions have _FAR macro front, so that all functions are available through the os_type.h Sinostate delete FAR_MODE macros to compile near or far call function call function. With a demo program is compiled in a small model obj file, do not care _FAR.
3 partial function, the structure must be used unde Platform: |
Size: 236544 |
Author:hugaoquan |
Hits: