Professional Documents
Culture Documents
2. Based on the two partitioning setup above, wouldyou recommend the implementation of the fixed
partitioning technique in developing automated machines? Why or why not?
➢ Yes, I can suggest the use of fixed partitioning in automated machines because the fault can be easily detected in
this partitioning, and it is very easy to implement. It can prevent data loss during power outages or when
software fails. Fixed partitions also increase the chances of data recovery in critical situations.
3. In your perspective, what are the possible downside of utilizing an equally sized memory partitions?
Rationalize your answer.
Downloaded by DATU AL-ANSARI UKO (ansariuko26@gmail.com)
➢ A program may be too big to fit in a partition, it needs to be designed with the use of overlays. Also, main
memory utilization is inefficient. Any program, regardless of size occupies an entire partition. Internal
fragmentation wasted space due to the block of data loaded being smaller than the partition. Now, In every
partition only one process will be accommodated, therefore the degree of multiprogramming is restricted by a
number of partition. The maximum size of the process is restricted by the size of the partition therefore large
size process cannot be accommodated.
Figure 2. A sequence of memory allocation of four processes, implementing the dynamic partitioning technique – 64MB memory.
Questions:
4. What do you think is the possible reason why Process 2 was pulled/swapped out (e) of the memory?
➢ Possible reasons can be
a. As memory is full and some high priority tasks are needed the CPU, therefore, process 2 is pulled out and
replaced by process 4. That is why it is suspended.
b. Process 2 may have completed his entire execution and no longer needed the CPU time. But in option (h) it
again arrives therefore this option is not true.
c. Process 2 has been temporarily suspended because of the time-sharing mode of execution CPU.
5. When Process 1 finishes the execution (g) and Process 2 is swapped back in the memory (h), what
possible condition or phenomenon can occur within the memory? Rationalize your answer.
➢ All the updates for the memory block of process 1 have been saved on the hard disk, the context of process 1 is
then cleared and memory is marked free. Then the context of process 2 is loaded and memory is allocated to
process 2. If the process finishes its burst before the time quantum timer expires, then it is swapped out of the
CPU just like the normal FCFS algorithm. If the timer goes off first, then the process is swapped out of the CPU
and moved to the back end of the ready queue.
6. If you are to develop a file management system, would you suggest the implementation of the
dynamic partitioning technique in memory management? Why or why not?
➢ If we have only two options Fixed and Dynamic partitioning scheme, then I would suggest implementing the
dynamic partitioning scheme. But if we can implement the more advanced technique of memory management
then there is no need for dynamic memory management as for files things require to be loaded from a hard
Grading Rubric: Downloaded by DATU AL-ANSARI UKO (ansariuko26@gmail.com)
disk.
05 Activity 1
Page 1 of 1