** Notes: Posted on April 23, 2006 as a reference. 1. This is a sample ouput to give an indication of the type of output. 2. The output will depend upon specifics the implementation of Least Recently Run (Used) algorithm. 3. It will depend upon how free frame management is done (e.g LILO, LIFO, etc) ** Command: load file1 file2 file3 file1 is loaded in main memory and is assigned pid 1 file2 is loaded in main memory and is assigned pid 2 file3 is loaded in main memory and is assigned pid 3 Command: run 1 Command: Load 11, 1001; Result: 1001 = 11 Command: Load 21, 2001; Result: 2001 = 21 Command: add 1001, 2001, 3001; Result: 11 + 21 = 32 Command: Print 3000; Result: 0 Command: Print 3001; Result: 32 Command: pteall outfile1 Page table entries for Process with id 1: 0 0 1 1 2 2 3 3 4 4 5 5 6 6 7 7 Page table entries for Process with id 2: 0 8 1 9 2 10 3 11 4 12 5 13 6 14 7 15 8 16 9 17 10 18 11 19 12 20 13 21 14 22 15 23 Page table entries for Process with id 3: 0 24 1 25 2 26 3 27 4 28 5 29 6 30 7 31 8 32 9 33 10 34 11 35 12 36 13 37 14 38 15 39 Command: swapout 2 Command: pte 2 outfile1 Page table entries for Process with id 2: 0 0 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 Command: load file4 file4 is loaded in main memory and is assigned pid 4 Command: swapin 2 Command: listpr Processes in main memory: 1, 2, 4 Processes in virtual memory: 3 Command: pteall outfile1 Page table entries for Process with id 1: 0 0 1 1 2 2 3 3 4 4 5 5 6 6 7 7 Page table entries for Process with id 2: 0 16 1 17 2 18 3 19 4 20 5 21 6 22 7 23 8 24 9 25 10 26 11 27 12 28 13 29 14 30 15 31 Page table entries for Process with id 3: 0 16 1 17 2 18 3 19 4 20 5 21 6 22 7 23 8 24 9 25 10 26 11 27 12 28 13 29 14 30 15 31 Page table entries for Process with id 4: 0 40 1 41 2 42 3 43 4 44 5 45 6 46 7 47 8 48 9 49 10 50 11 51 12 52 13 53 14 54 15 55 16 56 17 57 18 58 19 59 20 60 21 61 22 62 23 63 24 8 25 9 26 10 27 11 28 12 29 13 30 14 31 15 Command: run 2 Command: Load 12, 1002; Result: 1002 = 12 Command: Load 22, 2002; Result: 2002 = 22 Command: sub 2002, 1002, 3002; Result: 22 - 12 = 10 Command: Print 3002; Result: 10 Command: kill 1 Command: pteall outfile1 Page table entries for Process with id 2: 0 16 1 17 2 18 3 19 4 20 5 21 6 22 7 23 8 24 9 25 10 26 11 27 12 28 13 29 14 30 15 31 Page table entries for Process with id 3: 0 16 1 17 2 18 3 19 4 20 5 21 6 22 7 23 8 24 9 25 10 26 11 27 12 28 13 29 14 30 15 31 Page table entries for Process with id 4: 0 40 1 41 2 42 3 43 4 44 5 45 6 46 7 47 8 48 9 49 10 50 11 51 12 52 13 53 14 54 15 55 16 56 17 57 18 58 19 59 20 60 21 61 22 62 23 63 24 8 25 9 26 10 27 11 28 12 29 13 30 14 31 15 Command: run 2 Command: Load 12, 1002; Result: 1002 = 12 Command: Load 22, 2002; Result: 2002 = 22 Command: sub 2002, 1002, 3002; Result: 22 - 12 = 10 Command: Print 3002; Result: 10 Command: run 3 Command: Load 12, 1002; Result: 1002 = 12 Command: Load 22, 2002; Result: 2002 = 22 Command: sub 2002, 1002, 3002; Result: 22 - 12 = 10 Command: Print 3002; Result: 10 Command: run 4 Command: Load 14, 1004; Result: 1004 = 14 Command: Load 24, 2004; Result: 2004 = 24 Command: sub 2004, 1004, 3004; Result: 24 - 14 = 10 Command: Print 3004; Result: 10 Command: run 1 Error: Process with id 1 does not exist!