Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - INT 1
Search - INT 1 - List
时间片轮转算法struct { int name //进程标识符 int status //进程状态 int ax,bx,cx,dx //进程现场信息,通用寄存器内容 int pc //进程现场信息,程序计数器内容 int psw //进程现场信息,程序状态字内容 int next //下一个进程控制块的位置 }pcbarea[n]
Date : 2008-10-13 Size : 1.55kb User : pzq

DL : 0
在主机上编译后,上传INT,重起开发板。 在主机上编译后,上传CLOCK,重起开发板。
Date : 2008-10-13 Size : 9.89kb User : 哈哈哈

DL : 0
我所采用的内存管理思想是链表管理思想,内存分配方案是最佳适应方案(best fit)。其主要的数据结构为 struct node { char* p int memosize int flag struct node* next } 这是一个链表的结点的数据结构,用它来管理内存的分配与回收。P 表示所指的分配的内存的首地址,memosize 表示分配的内存块的大小,flag 为一个标志量,表示内存块是否被占用。用 1 和 0 来表示被占用和不被占用。next 表示下一个结点的首地址。 内存管理包括一个分配内存的mm_request(unsigned int)函数,一个初始化所要管理的内存的mm_init()函数,一个空闲列表排序函数sort(),一个释放内存的mm_release(void* )函数和一个判断内存是否被占用的IsFree(int)函数。
Date : 2008-10-13 Size : 2.64kb User : ruikobe

DL : 0
操作系统课程设计_进程调度演示源程序 #include \"stdio.h\" #include \"stdlib.h\" #include \"string.h\" typedef struct node { char name[10] /*进程标识符*/ int prio /*进程优先数*/ int round /*进程时间轮转时间片*/ int cputime /*进程占用CPU时间*/ int needtime /*进程到完成还要的时间*/ int count /*计数器*/ char state /*进程的状态*/ struct node *next /*链指针*/ }PCB
Date : 2008-10-13 Size : 2.31kb User : wjx

f2812的初始化构架,中断向量表,UCOS代码。 特别注意,具体应用时要充分考虑任务堆栈,防止堆栈溢出造成的BUG!本人所用开发环境为CCS2.2。这是为公司项目写的开始测试,不设计公司机密,可以随意使用。但下载者如涉及与INT公司项目有关应用,须经INT公司许可!-f2812 framework of the initialization, interrupt to the scale, UCOS code. Special attention to the specific application must fully consider tasks stack, stack overflow prevention of the BUG! I used development environment for DSP. This project is to write the company began testing, the design company secrets can be free to use. But those who download INT involved with the project company for the application, the company is subject to permission INT!
Date : 2026-01-07 Size : 169kb User :

时间片轮转算法struct { int name //进程标识符 int status //进程状态 int ax,bx,cx,dx //进程现场信息,通用寄存器内容 int pc //进程现场信息,程序计数器内容 int psw //进程现场信息,程序状态字内容 int next //下一个进程控制块的位置 }pcbarea[n]-Round Robin time slice struct (int name// process identifier int status// process state int ax, bx, cx, dx// process the scene information, the contents of general register int pc// process the scene information, the contents of program counter int psw// process the scene information, the program status word contents int next// next position of the process control block) pcbarea [n]
Date : 2026-01-07 Size : 1kb User : pzq

DL : 0
我所采用的内存管理思想是链表管理思想,内存分配方案是最佳适应方案(best fit)。其主要的数据结构为 struct node { char* p int memosize int flag struct node* next } 这是一个链表的结点的数据结构,用它来管理内存的分配与回收。P 表示所指的分配的内存的首地址,memosize 表示分配的内存块的大小,flag 为一个标志量,表示内存块是否被占用。用 1 和 0 来表示被占用和不被占用。next 表示下一个结点的首地址。 内存管理包括一个分配内存的mm_request(unsigned int)函数,一个初始化所要管理的内存的mm_init()函数,一个空闲列表排序函数sort(),一个释放内存的mm_release(void* )函数和一个判断内存是否被占用的IsFree(int)函数。
Date : 2026-01-07 Size : 2kb User : ruikobe

DL : 0
操作系统课程设计_进程调度演示源程序 #include "stdio.h" #include "stdlib.h" #include "string.h" typedef struct node { char name[10] /*进程标识符*/ int prio /*进程优先数*/ int round /*进程时间轮转时间片*/ int cputime /*进程占用CPU时间*/ int needtime /*进程到完成还要的时间*/ int count /*计数器*/ char state /*进程的状态*/ struct node *next /*链指针*/ }PCB -Operating system curriculum design process scheduling demo source _# Include stdio.h# Include stdlib.h# Include string.h typedef struct node (char name [10]/* process identifier*/int prio/* process priority number*/int round/* process time rotation time slice*/int cputime/* process occupy CPU time*/int needtime/* process to be completed but also the time*/int count/* counter*/char state/* process status*/struct node* next/* Chain pointer* /) PCB
Date : 2026-01-07 Size : 2kb User : wjx

读取配置文件(ini格式)的程序,可返回int,char*,float类型等的配置项数值。-Read configuration file (ini format) procedures can return int, char*, float type of configuration item values.
Date : 2026-01-07 Size : 3kb User : 钱睿硕

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("*************************************\n") printf("Enter your choice(1,2,3): ") do{ ch=(char)_getch() }while(ch!= 1 &&ch!= 2 &&ch!= 3 ) system("cls") if(ch== 3 ) return 0 else if(ch== 1 ) ReaderPriority("thread.dat") else WriterPriority("thread.dat") printf("\nPress Any Key to Coutinue:") _getch() system("cls") } return 0 -int main (int argc, char* argv []) (char ch while (true) (printf (************************************* ) printf ( 1.Reader Priority ) printf ( 2.Writer Priority ) printf ( 3.Exit to Windows ) printf (************************************* ) printf ( Enter your choice (1,2,3): ) do ( ch = (char) _getch ()) while (ch! = 1
Date : 2026-01-07 Size : 1kb User : 刘倩

DL : 0
编写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. 假设系统中文件的最大容量为100个磁盘块,且最多只有5个文件,定义一个由5个元素构成的结构数组file[5]用于记录各个文件占用的磁盘块,。 struct File { int fileblocd[100] //用于记录分别分配给文件的磁盘块号 }file[5] 4. 编写函数init( )完成空闲磁盘块号堆栈、空闲磁盘块号队列及记录文件占用磁盘块状态的file结构数组。 5. 编写函数alloc(fileno,blockd),完成磁盘块的分配操作。其中的参数fileno为文件序号,用于指定需要分配的文件。 6. 编写函数free(fileno),完成文件占用磁盘块的释放操作。其中的参数fileno为文件序号,用于指定需要释放磁盘块的文件。 7. 编写main( )函数完成下列操作: 调用init( )函数完成初始设置。 从终端输入命令,控制磁盘块的分配与回收操作。 -Write C language programs to simulate UNIX disk space management group used the link method. 1. The definition of a record number of disk blocks stack S-free [10], and the record number of disk blocks stack variables in the existing S-nfree. 2. The definition of a structure consisting of 40 elements in the array block [40] for disk blocks for storage. struct size {Int blocl [10] } struct blocd {Struct size a [10] // Used in the chain of free disk block number stored in the disk block number } Block [40] 3. Assuming that the system files in the maximum capacity of 100 disk blocks, and only a maximum of 5 files, defined by the five elements of a Array of structures file [5] used to record the disk blocks occupied by each file. struct File {Int fileblocd [100] // Used to record files were assigned to the disk block number } File [5] 4. Write a function init () to complete the stack of free disk block number, block number of free disk queue an
Date : 2026-01-07 Size : 2kb User : fdsf

计银行家算法,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[]) //N步扫描算法 -Count the banker' s algorithm, void FCFS queue (int Han, int DiscL []) // first-come first-served (FCFS) algorithm void leaf Total Flavonoid Against (an int Han, an int DiscL []) // shortest seek time first algorithm (leaf Total Flavonoid Against) int SCAN (int Han, int DiscL [], int x, int y) // scan algorithm (SCAN) void CSCAN (an int Han,, int DiscL []) // loop scan algorithm (CSCAN) void N_Step_SCAN (int Han1 , int, DiscL []) // N-step scan algorithm
Date : 2026-01-07 Size : 235kb User : suhuhu

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 INT 13H DL = 81H or 82H, the machine is one machine for testing DL = 0H)
Date : 2026-01-07 Size : 2kb User : GAM

某一层楼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 scheduler. Program consists of two classes: lift_control class implements the generation and scheduling of the elevator dest class as a static class call one function, to achieve the management of the int array, including insert (), size (), pop (), delete () and so on.
Date : 2026-01-07 Size : 1.32mb User : vina

DL : 0
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 proc file returns some info
Date : 2026-01-07 Size : 2kb User : lizzy

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 i<n i++) } void main() { while(1) { s++ if(s>500) s 0 Dat[0] s/100 Dat[1] s 100/10 Dat[2] s 10 tmp 0x01 for(i 0 i<3 i++) { P2 tmp P0 Tab[Dat[i]] tmp tmp<<1 delay(250) } for(i 0 i<150 i++) for(j 0 j<100 j++) delay(60000) } }-Proteus single-chip microcomputer simulation- digital tube (dynamic) # include < reg51. H > Unsigned char code Tab [] {xa4 xc0 0, 0 xf9, 0, 0 xb0, 0 x99, 0 x92, 0 x82, 0 xf8, 0 x80, 0 x90} 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 I < n i++) } Void main () { While (1) { S++ If (s > 500). S 0 Dat [0] s/100 Dat [1] s 100/10 Dat [2] s 10 TMP 0 x01 For (I 0 I < 3 i++) { The P2 TMP P0 Tab [Dat [I]] TMP TMP < < 1 Delay (250) } For (I 0 I < 150 i++) For (j 0 j < 100 j++) Delay (60000) } }
Date : 2026-01-07 Size : 87kb User : 吴空其

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 simulation- active buzzer # 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++) } }
Date : 2026-01-07 Size : 42kb User : 吴空其
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.