搜索资源列表
neicunfeipei
- 编写一个C程序,用char *malloc(unsigned size)函数向系统申请一次内存空间(如size=1000,单位为字节),用循环首次适应法 addr = (char *)lmalloc(unsigned size) 和 lfree(unsigned size,char * addr)模拟可变分区内存管理,实现对该内存区的分配和释放管理。
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("*******
code
- vxworks一些程序 Char.c和Char.h是字符型设备驱动模板 Blk.c是块设备驱动模板 PCI.c是PCI设备映射内存空间模板-vxworks some programs Char.c and Char.ch is a character device driver template Blk.c is a block device driver template PCI.c are PCI devices mapped memory space templat
lesson5
- proteus单片机仿真 数码管 #include <reg51.h> unsigned char code Tab[] {0xC0,0xF9,0xA4,0xB0,0x99,0x92,0x82,0xF8,0x80,0x90} void Delay() { unsigned char i,j for(i 0 i<255 i++) for(j 0 j<255 j++) } void main() { uns
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
lesson9
- 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} sbit JDQ P1^0 sbit Buzzer P3^0 void sound() -Proteus single-chip