Operating Systems Lab Manual / OS Memory Variable Partioning Type C Program

Program Name write a OS Memory Variable Partioning Type C Program
Theory
In Memory Variable Partioning we give a variable memory for each process. 
Program
Input
Enter Total memory available (in Bytes)1000

Enter memory required for process 1 (in Bytes)399
Memory allocated for Process: 1 
Do you want to continue(y/n) -- y

Enter memory required for process 2 (in Bytes)276
Memory allocated for Process: 2 
Do you want to continue(y/n) -- y

Enter memory required for process 3 (in Bytes)551
Output
Memory is Full

Total Memory Available: 1000

	Process 		 Memory Alloted 
 	1		399
 	2		276

Total	Memory	Allocated : 675
Total External Fragmentation : 325


Home     Back