TALINAO 05 Acitivty 1

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

TALINAO, NOEL C.

BSCPE – G302

Instructions: Analyze the illustrations and answer the corresponding questions for each. Use 3-5
sentences in answering.

Part I: Fixed Partitioning

Which partitioning setup could possibly reduce internal fragmentation and how?

➢ The Dynamic Partitioning can possibly reduce internal fragmentation because these
partitions are created dynamically, wherein each process is loaded into a partition of
exactly the same size as the process. This technique has no internal fragmentation.
Which results in a more efficient use of the main memory. The first partition is reserved
for the operating system. The remaining space is divided into parts. The size of each
partition will be equal to the size of the process. There are three ways to implement
dynamic partitioning, best fit, first-fit, and next-fit.

1. Basedon the two partitioning setups above, would you 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
TALINAO, NOEL C.
BSCPE – G302

prevent data loss during power outages or when software fails. Fixed partitions also
increase the chances of data recovery in critical situations.

2. In
your perspective, what are the possible downside of utilizing an equally sized
memory partitions? Rationalize your answer.
➢ 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.

Part II: Dynamic Partitioning


TALINAO, NOEL C.
BSCPE – G302

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 disk.
TALINAO, NOEL C.
BSCPE – G302

You might also like