You are on page 1of 4

Non-Contiguous

Memory Allocation :
Non-Contiguous memory allocation is basically a method on the contrary to contiguous
allocation method, allocates the memory space present in different locations to the process as
per it’s requirements. As all the available memory space is in a distributed pattern so the
freely available memory space is also scattered here and there.
This technique of memory allocation helps to reduce the wastage of memory, which eventually
gives rise to Internal and external fragmentation.
Non-Contiguous Memory Allocation
Difference between Contiguous and Non-contiguous Memory Allocation :

Contiguous Memory Non-Contiguous


S.NO. Allocation Memory Allocation

Contiguous memory Non-Contiguous


allocation allocates memory allocation
consecutive blocks of allocates separate blocks
memory to a of memory to a
1. file/process. file/process.

2. Faster in Execution. Slower in Execution.

It is easier for the OS to It is difficult for the OS


3. control. to control.

Overhead is minimum as
not much address
translations are there More Overheads are
while executing a there as there are more
4. process. address translations.
Differences between TCP and UDP

User datagram protocol


Transmission control protocol (TCP)
(UDP)

UDP is the Datagram oriented protocol. This is


TCP is a connection-oriented protocol. Connection- because there is no overhead for opening a
orientation means that the communicating devices connection, maintaining a connection, and
should establish a connection before transmitting terminating a connection. UDP is efficient for
data and should close the connection after broadcast and multicast type of network
transmitting the data. transmission.

TCP is reliable as it guarantees the delivery of data The delivery of data to the destination cannot be
to the destination router. guaranteed in UDP.

You might also like