《操作系统》的实验代码。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

83 lines
2.8 KiB

  1. ARG seed 0
  2. ARG numInodes 8
  3. ARG numData 8
  4. ARG numRequests 10
  5. ARG reverse False
  6. ARG printFinal False
  7. Initial state
  8. inode bitmap 10000000
  9. inodes [d a:0 r:2] [] [] [] [] [] [] []
  10. data bitmap 10000000
  11. data [(.,0) (..,0)] [] [] [] [] [] [] []
  12. Which operation took place?
  13. inode bitmap 11000000
  14. inodes [d a:0 r:3] [d a:1 r:2] [] [] [] [] [] []
  15. data bitmap 11000000
  16. data [(.,0) (..,0) (g,1)] [(.,1) (..,0)] [] [] [] [] [] []
  17. Which operation took place?
  18. inode bitmap 11100000
  19. inodes [d a:0 r:4] [d a:1 r:2] [f a:-1 r:1] [] [] [] [] []
  20. data bitmap 11000000
  21. data [(.,0) (..,0) (g,1) (q,2)] [(.,1) (..,0)] [] [] [] [] [] []
  22. Which operation took place?
  23. inode bitmap 11110000
  24. inodes [d a:0 r:5] [d a:1 r:2] [f a:-1 r:1] [f a:-1 r:1] [] [] [] []
  25. data bitmap 11000000
  26. data [(.,0) (..,0) (g,1) (q,2) (u,3)] [(.,1) (..,0)] [] [] [] [] [] []
  27. Which operation took place?
  28. inode bitmap 11110000
  29. inodes [d a:0 r:6] [d a:1 r:2] [f a:-1 r:1] [f a:-1 r:2] [] [] [] []
  30. data bitmap 11000000
  31. data [(.,0) (..,0) (g,1) (q,2) (u,3) (x,3)] [(.,1) (..,0)] [] [] [] [] [] []
  32. Which operation took place?
  33. inode bitmap 11111000
  34. inodes [d a:0 r:7] [d a:1 r:2] [f a:-1 r:1] [f a:-1 r:2] [d a:2 r:2] [] [] []
  35. data bitmap 11100000
  36. data [(.,0) (..,0) (g,1) (q,2) (u,3) (x,3) (t,4)] [(.,1) (..,0)] [(.,4) (..,0)] [] [] [] [] []
  37. Which operation took place?
  38. inode bitmap 11111100
  39. inodes [d a:0 r:7] [d a:1 r:3] [f a:-1 r:1] [f a:-1 r:2] [d a:2 r:2] [f a:-1 r:1] [] []
  40. data bitmap 11100000
  41. data [(.,0) (..,0) (g,1) (q,2) (u,3) (x,3) (t,4)] [(.,1) (..,0) (c,5)] [(.,4) (..,0)] [] [] [] [] []
  42. Which operation took place?
  43. inode bitmap 11111100
  44. inodes [d a:0 r:6] [d a:1 r:3] [f a:-1 r:1] [f a:-1 r:1] [d a:2 r:2] [f a:-1 r:1] [] []
  45. data bitmap 11100000
  46. data [(.,0) (..,0) (g,1) (q,2) (u,3) (t,4)] [(.,1) (..,0) (c,5)] [(.,4) (..,0)] [] [] [] [] []
  47. Which operation took place?
  48. inode bitmap 11111110
  49. inodes [d a:0 r:6] [d a:1 r:4] [f a:-1 r:1] [f a:-1 r:1] [d a:2 r:2] [f a:-1 r:1] [d a:3 r:2] []
  50. data bitmap 11110000
  51. data [(.,0) (..,0) (g,1) (q,2) (u,3) (t,4)] [(.,1) (..,0) (c,5) (w,6)] [(.,4) (..,0)] [(.,6) (..,1)] [] [] [] []
  52. Which operation took place?
  53. inode bitmap 11111110
  54. inodes [d a:0 r:6] [d a:1 r:4] [f a:-1 r:1] [f a:-1 r:1] [d a:2 r:2] [f a:4 r:1] [d a:3 r:2] []
  55. data bitmap 11111000
  56. data [(.,0) (..,0) (g,1) (q,2) (u,3) (t,4)] [(.,1) (..,0) (c,5) (w,6)] [(.,4) (..,0)] [(.,6) (..,1)] [o] [] [] []
  57. Which operation took place?
  58. inode bitmap 11111111
  59. inodes [d a:0 r:7] [d a:1 r:4] [f a:-1 r:1] [f a:-1 r:1] [d a:2 r:2] [f a:4 r:1] [d a:3 r:2] [f a:-1 r:1]
  60. data bitmap 11111000
  61. data [(.,0) (..,0) (g,1) (q,2) (u,3) (t,4) (n,7)] [(.,1) (..,0) (c,5) (w,6)] [(.,4) (..,0)] [(.,6) (..,1)] [o] [] [] []