搜索资源列表
F2812-UCOS
- f2812的初始化构架,中断向量表,UCOS代码。 特别注意,具体应用时要充分考虑任务堆栈,防止堆栈溢出造成的BUG!本人所用开发环境为CCS2.2。这是为公司项目写的开始测试,不设计公司机密,可以随意使用。但下载者如涉及与INT公司项目有关应用,须经INT公司许可!-f2812 framework of the initialization, interrupt to the scale, UCOS code. Special attention to the specific appli
shijianpian
- 时间片轮转算法struct { int name //进程标识符 int status //进程状态 int ax,bx,cx,dx //进程现场信息,通用寄存器内容 int pc //进程现场信息,程序计数器内容 int psw //进程现场信息,程序状态字内容 int next //下一个进程控制块的位置 }pcbarea[n]
INT
- 在主机上编译后,上传INT,重起开发板。 在主机上编译后,上传CLOCK,重起开发板。
neicun
- 我所采用的内存管理思想是链表管理思想,内存分配方案是最佳适应方案(best fit)。其主要的数据结构为 struct node { char* p int memosize int flag struct node* next } 这是一个链表的结点的数据结构,用它来管理内存的分配与回收。P 表示所指的分配的内存的首地址,memosize 表示分配的内存块的大小,flag 为一个标志量,表示内存块是否被占用。用 1 和 0 来表示被占用和不被占
9
- 操作系统课程设计_进程调度演示源程序 #include \"stdio.h\" #include \"stdlib.h\" #include \"string.h\" typedef struct node { char name[10] /*进程标识符*/ int prio /*进程优先数*/ int round /*进程时间轮转时间片*/ int cputime /*进程占用CPU时间*/ int needtime /*进程到完成
readini
- 读取配置文件(ini格式)的程序,可返回int,char*,float类型等的配置项数值。
thread.dat
- int main(int argc,char *argv[]) { char ch while(true) { printf("*************************************\n") printf(" 1.Reader Priority\n") printf(" 2.Writer Priority\n") printf(" 3.Exit to Windows\n") printf("*******
as
- 编写C语言程序,模拟UNIX磁盘空间管理中使用的分组链接法。 1.定义一个记录磁盘块号的堆栈S—free[10],以及记录栈中现有磁盘块数的变量S—nfree。 2.定义一个由40个元素构成的结构数组block[40]用作磁盘块存放。 struct size { int blocl[10] } struct blocd { struct size a[10] //用于在空闲磁盘块号链中存放磁盘块号 }block[40] 3. 假设系统中文件的最大
operating-system
- 计银行家算法,void FCFS(int Han,int DiscL[]) //先来先服务算法(FCFS) void SSTF(int Han,int DiscL[]) //最短寻道时间优先算法(SSTF) int SCAN(int Han,int DiscL[],int x,int y) //扫描算法(SCAN) void CSCAN(int Han,int DiscL[]) //循环扫描算法(CSCAN) void N_Step_SCAN(int Han1,int DiscL
boot4200
- U盘第一扇区引导代吗,引导16~32扇区,U盘初始化为FAT32文件系统(注意笔记可能要求INT 13H 调用时DL=81H或者82H,本机为一体机测试用的是DL=0H)-U disk first sector of the boot-generation guide 16 to 32 sectors, U disk is initialized to the FAT32 file system (note the notes may require the invocation of the
lift_control_by_Vina
- 某一层楼20层,有五部互联的电梯。基于线程思想,编写了此电梯调度程序。 程序包含两个类: lift_control类 实现对电梯的生成和调度 dest类 当做静态类调用其中函数,实现对int数组的管理,包括insert(),size(),pop(),delete()等。-Floor of a 20-story, there are five interconnected elevator. Based on the thread of ideas, this elevator
src
- include three modules in Linux. Module 1 – Load/unload the module can output some info Module 2 – Module accepts three parameters (int, string, array) – Load the module, output the parameter’s value Module 3 – Module creates a proc file, reading the
lesson6
- proteus单片机仿真-数码管(动态) #include<reg51.H> unsigned char code Tab[] {0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90} unsigned char Dat[] {0,0,0,0} unsigned char tmp,i,j unsigned char s 0 void delay(int n) { int i for(i 0
lesson7
- proteus单片机仿真-有源蜂铃器 #include<reg51.h> sbit Buzzer P0^0 void main(void) { int i,n n 60 while(1) { Buzzer 1 for(i 1 i<n i++) Buzzer 0 for(i 1 i<n i++) } }-Proteus single-chip microcomputer simu