Found 55 Articles for Memory

Difference Between fork() and vfork()

AmitDiwan
Updated on 20-Apr-2021 09:13:49

610 Views

In this post, we will understand the difference between system calls fork and vfork −The ‘fork’ system callIn this system call, the child and parent process have separate memory spaces.The child and parent process are executed simultaneously.This call uses the copy-on-write as alternative.Child process doesn’t have the ability to suspend execution of the parent process in this system call.The page of one process doesn’t get affected by the page of other process.It is more frequently used.No address space is wasted.If the child process alters the page in the address space, it is not visible to the parent process.The ‘vfork’ system ... Read More

Difference Between Internal and External fragmentation

AmitDiwan
Updated on 19-Apr-2021 06:32:01

741 Views

In this post, we will understand the difference between internal and external fragmentation −Internal FragmentationThe difference between the memory allocated and the space required is known as internal fragmentation.In this fragmentation, fixed-sized memory blocks are used to process data.This process occurs when a method or process is larger than the required memory.The method used in internal fragmentation is ‘best-fit’ block.It occurs when the memory is divided into fixed sized partitions.External FragmentationThe unused spaces that is formed between fragments of non-contiguous memory, which are too small to help with a new process, is known as external fragmentation.It uses variable-sized memory blocks ... Read More

Difference Between Contiguous and Non-contiguous Memory Allocation

AmitDiwan
Updated on 19-Apr-2021 06:30:11

1K+ Views

In this post, we will understand the difference between contiguous and non-contiguous memory allocation −Contiguous Memory AllocationIn this allocation type, the consecutive blocks of memory is allocated to a file/process.It executes quickly in comparison to non-contiguous memory.It is easy to be controlled by the operating system.Minimum overhead since there are not many address translation when a process is being executed.There is internal fragmentation in contiguous memory allocation.There are different types of partitions: Single partition allocation and multi-partition allocation.Memory gets wasted.The swapped-in process is arranged in the originally allocated space itself.Non-contiguous Memory AllocationIn this type of allocation, separate blocks of memory ... Read More

Difference Between Paging and Swapping in OS

Kiran Kumar Panigrahi
Updated on 21-Feb-2023 15:07:22

1K+ Views

Both paging and swapping are important concepts in operating systems that place a process in the main memory for its execution, but they are quite different from each other in many aspects. Read this article to learn more about paging and swapping and their specific characteristics. What is Paging? In OS, Paging is a memory management strategy in which the process address space is divided into blocks of the same size, called pages (where the size of each page is power of 2, and is between 512 bytes and 8192 bytes). The size of the process is then measured in ... Read More

Difference Between Primary and Secondary Memory

Kiran Kumar Panigrahi
Updated on 11-Jan-2023 15:40:36

14K+ Views

Memory is a part of any computer system that is used to store data and instructions. Computer memory is broadly classified into three categories − Primary Memory, Secondary Memory, and Cache Memory. Primary memory is usually in the form of random access memory (RAM) and is used to store data that the CPU needs to access quickly. Secondary memory is usually in the form of hard drives, solid-state drives, or removable storage devices (such as USB drives) and is used to store data that the CPU does not need to access immediately. Read this tutorial to find out more about ... Read More

Difference Between Linker and Loader

AmitDiwan
Updated on 19-Apr-2021 06:07:03

9K+ Views

In this post, we will understand the difference between a linker and a loader −LinkerThe main function of the linker is to generate executable files.The linker takes the input as the object code which would be generated by a compiler/assembler.The process of linking can be understood as a method to combine different snippets of code in order to obtain executable code.There are two types of linkers available: Linkage Editor and Dynamic Linker.Linker also helps combine all the object modules.Linker is responsible to arrange the objects in the program’s address space.LoaderThe main function of a loader is to load executable files ... Read More

Difference Between SRAM and DRAM

Kiran Kumar Panigrahi
Updated on 07-Sep-2023 01:10:07

36K+ Views

In a computer system, memory devices are used to store data and information. Computer memories are mainly classified into three types – primary memory, secondary memory, and cache memory. The primary memory is further classified into two types namely – RAM and ROM, where RAM is further subdivided into two types, i.e., SRAM and DRAM. Read through this article to find out how an SRAM is different from a DRAM. What is RAM? RAM stands for Random Access Memory. It is the internal memory of the CPU for storing data, program, and program result. It is a read/write memory ... Read More

Difference Between PROM and EPROM

Kiran Kumar Panigrahi
Updated on 14-Dec-2022 18:04:06

2K+ Views

In computers and other electronic devices, there is an internal storage device called ROM (Read Only Memory). It is a storage device used to store data and instructions permanently. Till date, there are several types of ROMs available such as PROM, EPROM, and EEPROM. There are several differences among all these types of ROMs depending on the manufacturing process, electronic components used, operation, reversibility, etc. In this article, we will discuss the important differences between PROM and EPROM by considering different parameters. But before that, it is important to get an overview of their basics so that it becomes easier ... Read More

Difference between Demand Paging and Segmentation

Kiran Kumar Panigrahi
Updated on 24-Nov-2022 13:03:52

4K+ Views

Both Demand Paging and Segmentation are memory management techniques used in operating systems. In Demand Paging, a page is loaded from the secondary memory into the primary memory, only when it is needed. On the other hand, Segmentation follows a strategy whereby the entire memory space is divided into discrete segments and each segment is allocated to a process. Read through this article to find out more about Demand Paging and Segmentation and how they are different from each other. What is Demand Paging? As the name suggests, Demand Paging swaps a page into the main memory only when ... Read More

Difference between Memory and Storage

Kiran Kumar Panigrahi
Updated on 11-Jan-2023 15:32:25

937 Views

Memory and Storage are two terms that are often used interchangeably, but they refer to different things. Memory is used to store data that is being actively used by the CPU, while Storage is used to store long-term data that needs to be accessed on a regular basis. Read this tutorial to learn more about Memory and Storage and how they are different from each other. What is Memory? Memory allows storing data on a short term basis. A memory normally is made up using registers. Each register has a location called memory location or storage location. Each memory location ... Read More

Advertisements