Lab 10 Memory Management in Paging Scheme On OS

Lab 10 Memory Management in Paging Scheme In computer operating systems, paging is a memory management scheme by which a computer stores and retrieves data from secondary storage[a] for use in main memory. In this scheme, the operating system retrieves data from secondary storage in same-size blocks called pages. Paging is an important part of virtual memory implementations in modern operating systems, using secondary storage to let programs exceed the size of available physical memory. For simplicity, main memory is called "RAM" (abbreviated from "random-access memory") and secondary storage is called "disk" (a shorthand for "hard disk drive"), but the concepts do not depend on whether these terms apply literally to a specific computer system. Direction: Memory Management in Paging Scheme in C. #include #include int main() { int st[10], bt[10], wt[10], tat[10], n, tq; int i, count=0, swt=0, stat=0, temp, sq=0; float awt=0.0, atat=0.0; printf("enter number of processes : "); scanf("%d", &n); printf("nenter burst time for processes "); for(i=0; itq) { st[i]=st[i]-tq; } else if (st[i]>=0) { temp=st[i]; st[i]=0; } sq=sq+temp; tat[i]=sq; } if(n==count) break; } for(i=0;i

Comments

Popular posts from this blog

Magnifier- Magnifying Glass Privacy Policy

Boot Windows Oops, we get this horrible error! new method

Lab. No 8 Shortest Job First Operating System