Instructions: • The assignment questions are from Shell Programming, CPU scheduling and Page Replacement Algorithm • The
Posted: Fri May 20, 2022 1:39 pm
Instructions:
• The assignment questions are from Shell Programming, CPU scheduling and Page Replacement Algorithm
• The assignment has 3 questions. You have to take picture/snapshot of output and attached with each question.
• All paragraphs must be resolved
Q1) Write a shell program to find prime number from 1 to 50 and display output. Q2) Write a program to calculate average waiting time for Shortest Job First algorithm for following table and display output. Process PI Burst Time 5 Arrival time 0 P2 6 1 P3 2 2 P4 4 3 P5 8 4 Q3) Write a program to calculate page fault by using LRU (least recently used) for the following reference string: 1, 3, 2, 3, 4, 2, 1, 3, 4, 2, 1, 4, 3, 1, 3.
• The assignment questions are from Shell Programming, CPU scheduling and Page Replacement Algorithm
• The assignment has 3 questions. You have to take picture/snapshot of output and attached with each question.
• All paragraphs must be resolved
Q1) Write a shell program to find prime number from 1 to 50 and display output. Q2) Write a program to calculate average waiting time for Shortest Job First algorithm for following table and display output. Process PI Burst Time 5 Arrival time 0 P2 6 1 P3 2 2 P4 4 3 P5 8 4 Q3) Write a program to calculate page fault by using LRU (least recently used) for the following reference string: 1, 3, 2, 3, 4, 2, 1, 3, 4, 2, 1, 4, 3, 1, 3.