This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Program to implement Indexed File allocation | |
#include <stdio.h> | |
#define MAX 100 | |
int blocks[MAX]; | |
int indices[10]; | |
typedef struct { | |
int start; | |
int len; | |
int alloc[25]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PGM1 START 1000 | |
- LDA ALPHA | |
- MUL BETA | |
- STA GAMMA | |
ALPHA WORD 2 | |
BETA WORD 4 | |
GAMMA RESW 1 | |
- END 1000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
H 1000 200 | |
T 1000 11001 141033 481039 901776 921765 571765 | |
T 2011 11110 231838 431979 891060 661849 991477 | |
E 1000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
H COPY 001000 00107A | |
T 000000 1E 140033 481039 100036 280030 300015 481061 3C0003 20002A 1C0039 30002D | |
T 002500 15 1D0036 481061 180033 4C1000 801000 601003 | |
E 000000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DATA SEGMENT | |
STR DB 'AXYBCSDEF$' | |
SUBSTR DB 'BCS$' | |
LEN1 DB 0 | |
LEN2 DB 0 | |
MSG1 DB 10,13,'STRING IS : $' | |
MSG2 DB 10,13,'SUBSTRING IS : $' | |
MSG3 DB 10,13,'SUBSTRING IS FOUND AT POSITION : $' | |
POS DB -1 | |
RTN DB '-1$' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DATA SEGMENT | |
S1 DB "HELLO$" | |
VC DB 00H | |
DATA ENDS | |
CODE SEGMENT | |
ASSUME CS:CODE,DS:DATA | |
START: | |
MOV AX,DATA |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// FCFS SCHEDULING | |
#include<stdio.h> | |
struct process { | |
int pid, atime, btime, ctime, tatime, wtime; | |
}; | |
int main () { | |
printf ("FCFS SCHEDULING\n"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// PRIORITY CPU SCHEDULING | |
#include<stdio.h> | |
struct pris { | |
int pid, pri, atime, btime, ctime, wtime, tatime; | |
short check; | |
}; | |
void main () { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SJF CPU SCHEDULING | |
#include<stdio.h> | |
struct pris { | |
int pid, atime, btime, ctime, wtime, tatime; | |
short check; | |
}; | |
void main () { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include<stdlib.h> | |
struct rrs { | |
int pid, atime, btime, tempb, ctime, tatime, wtime; | |
short isTraversed; | |
}; | |
void main () { | |