OPERATING SYSTEM. PREPARED BY : DHAVAL R. PATEL Page 1. Q.1 Explain Memory
|
|
- Eleanor Bond
- 5 years ago
- Views:
Transcription
1 Q.1 Explain Memory Data Storage in storage device like CD, HDD, DVD, Pen drive etc, is called memory. The device which storage data is called storage device. E.g. hard disk, floppy etc. There are two types of memory. 1) Primary memory 2) Secondary memory Primary memory Primary memory is an internal memory. e.g. RAM & ROM This type of memory fitting inside the computer. Generally it stores a data temporary. RAM: (Random access memory) Ram stored the data temporary when power supply is on is stored the data temporary & when power supply is off is erase the data so it is also called erasable memory volatile. Ram stored a data randomly. Ram is a one type fetch memory which supported to main memory to increase a speed. Ram has a both process read & write. ROM: (Read Only Memory) Rom is a permanent memory. It stores the BIOS setup. Rom can done only real process. There are three types of rom. (i) (ii) (iii) PROM (Programmable ROM) EPROM (Erasable Programmable ROM) EEPROM (Electrical Erasable Programmable ROM) PREPARED BY : DHAVAL R. PATEL Page 1
2 Q.2 Explain Main Memory and Process: Main memory is a workstation of memory system. It is also known as physical memory. It is internally connect with chip & externally connect with disc. It is also called physical memory. Main memory is the middle later of the memory. In compare of catch memory it speed is slow. Catch memory supported to main memory to increase a speed. e.g. RAM This memory has a layers size. Our data are store in main memory. It stores a data sequentially. The address generated by the main memory is called physical address. The data storage in the memory block at particular place is called address. Address start from 0. Process Process in main memory. The main memory process is required a program & data. Program means instruction code. Process control block control the process using information. Program required a data getting from the data block stack is required in address space. Address generated by the process is called logical address. Q.3 Logical Address v/s Physical Address Logical Address: Definition: Logical address generated by the C.P.U is called logical address. Process address space used a sequential list of byte & each byte have a particular address is called Logical address. It use a logical address space for process. Process can read and write address of it over logical address space. Logical addresses are limited by address size of process. Physical address Definition: Physical address generated by the memory is called physical address. The entire physical memory locate at sequential byte & each sequential byte have a particular address. This address is called physical address. Physical address space used for execution process of main memory. Process can read & write only their only physical address which have own physical address space. The physical address have a limited address depend on installation of data. PREPARED BY : DHAVAL R. PATEL Page 2
3 Q.4 Memory Manager (Memory Management) Part of O.S. connect with the main memory is called memory management. It is also called Memory Management Unit (MMU). The main goal of memory management is increase the efficiency of main memory. The requirement for memory management Fetch: It find when data or a information move from disc to main memory. Placement: Placement find where fetch information can locate on main memory. Replacement: Some data are not detect that are removed from memory. Sharing: Sometime there are multiple process step at that time memory unit sharing the process. Address Translation: The convert the logical address to physical address is called address translation. Protection: An authorize person can not access the data that point must be required for the memory. Q.5 MEMORY ALLOCATION The main goal of memory allocation are. 1) High Utilization: Maximum memory used. No any single block of memory is wasted. 2) High concurrency: Maximum possible process should be done in main memory. Maximum time CPU is busy so no time wasted. There are two types of memory allocation. (i) Contiguous memory allocation. (ii) Non Contiguous memory allocation. (I) Contiguous memory allocation: It is simple and old type of memory allocation in modern O.S. this type of memory allocation is not used. Each process take a block in main memory & process together in block contiguous. In contiguous memory allocation if required space is not available the process wait until they getting the space. Logical address space is not divide in contiguous memory allocated. Physical address space is contiguous. E.g. 1) Single process monitor. PREPARED BY : DHAVAL R. PATEL Page 3
4 2) Multi programming with fix partition. 3) Multi programming with dynamic partition. Advantages: It is very easy to implement. It is very easy to understand. Disadvantages: Very poor memory utilization. (II) Non contiguous memory allocation: In non contiguous memory allocation the logical address space divided in to block (A,B,C) here physical address space is non contiguous. Process divided into block see in fig (A,B,C) take place into memory. Advantages: Very good memory utilization. Disadvantages: Very complex to implement. E.g. paging & segment Q.6 Single process monitor: It is the very simple type of memory allocation. Only single process is allowed to run. Memory showed between O.S. & user program. See in fig. there are two possibilities of process. 1) O.S. at bottom side and user program a the top. 2) O.S. at top side and user program at the bottom. Using this system 1st time command comport (ms dos) attach with O.S. Advantages: PREPARED BY : DHAVAL R. PATEL Page 4
5 Very simple. Disadvantages: Only one process done at a time. Q.7 Multiprogramming with Fix partition: Here memory is sharing between O.S. and process. In multiprocessing O.S. there are more than a one process can done by CPU. So CPU is always busy (means the system increase the CPU utilization.) In this type of memory allocation memory divided into fix size block. All block have a equal or unequal partition. The process can place in the block which is suitable for process size e.g. suppose process size is 90 kb it place in 100 kb block see in fig. PREPARED BY : DHAVAL R. PATEL Page 5
6 It use a Queue for decide the turn from multiple process. We use a Queue as a two way 1) Multiprogramming using separate I/p Queue for each partition. 2) Multiprogramming using common I/p Queue for all partition. (1) Multi Program using I/p Queue for each partition: In this type of process every block use a separate Queue. Process take place in a Queue depend on their size. Some disadvantages in this process is that the process waiting until first process not done, In compare other block is free at that time. E.g. the small process placed into small block Queue (this process also done in large size block) but because of process take place in small block Queue can not go at large size block (If large size block is free). (2) Common Queue for all partition: There are common Queue used for the all block. The process take place in partition from the Queue depends on their size. PREPARED BY : DHAVAL R. PATEL Page 6
7 Advantages: Disadvantages: Very easy to implement. We cannot change the size of block. There are problem of internal fragmentation. INTERNAL FRAGMENTATION: The process have a small size in compare of partition size at that time wastage a memory size is called internal fragmentation. PREPARED BY : DHAVAL R. PATEL Page 7
8 Q.9 Multiprogramming with Dynamic partition: (A) Initial State, (B) Process1 Enters, (C) Process2 Enters, (D) Process1 Enters, (E) Process1 Enters, (F) Process1 Enter In Multiprogramming with dynamic partition memory share between OS and process (Single partition). When process enters in memory it take required space of memory (means memory block divide in a block 1) for process 2) preface). See in fig. (B) Process1 take a 20 MB from 56 MB memory block. When another processes enter it take memory from remain preface. See in fig. (C) Such away all process take place in memory. When process is terminated it free the memory space see fig (E). We can again enter next process in free block as shown in fig (F). Sometime the memory block is larger than process at that time. Some memory are wasted is called external fragmentation. PREPARED BY : DHAVAL R. PATEL Page 8
9 Advantages: The memory block are not fix we can change the size of memory block. Better utilization of memory. Disadvantages: External fragmentation. DEF: It refers to the wastage of free memory between partitions, caused by scattered non-contiguous free space. Q.10 PAGING: DEF: Logical address space divided into fix size block is called pages. Physical memory divided into fix size block is called frame. The page and frame will be same size & it s size calculate using power of 2 (2ⁿ). e.g. suppose n = 8 bit the size equal to 2^8 = 256 bit. When process is executed the page are move from secondary storage device to free frame in physical memory. PREPARED BY : DHAVAL R. PATEL Page 9
10 OS used a maintained table is called page table. It stored the information by frame no. Logical address divided into two part page no. which gives the page no to process & offset (d) which give actually location (address). Q.11 IMPLEMENTATION OF PAGING: During the process execution CPU generates logical address & logical address divided into two part page no & offset. The logical address used a page table & find the free frame from the physical memory at that time the address generated by physical memory is called physical address & It is divided into two part frame no & offset. Address transaction PREPARED BY : DHAVAL R. PATEL Page 10
11 Page size - 2ⁿ byte. Page number (ø) = L/2ⁿ Page offset (d) = L%2ⁿ Physical address ( ) = (F 2ⁿ) + d e.g. -> Logical address generated by CPU is 7 & size of page is 3 byte then find the page no & offset. It use second frame of physical address space then find physical address. Page size = 2ⁿ = 3 byte Physical address P = L/2ⁿ d = 7%3 = 1 = 7/2 = 2 P = (2 3) +1 = 6+1 = 7 Advantages: Memory allocation & de-allocation is very fast. Swap in & swap out operation is very fast. There is no any external fragmentation. Disadvantages: Additional memory requires a page table to read information. Size of page table is very large. There are internal fragmentation. EXTERNAL FRAGMENTATION: The small block are not used for any process. So this memory is wasted means size of block is small than process is called external fragmentation. PREPARED BY : DHAVAL R. PATEL Page 11
12 Q.12 SEGMENT: Basic concept of Segmentation The logical address space divided into block of variable size is called Segment. Logical address space used for any process like code, data, function, stack etc. Code is used for main function or user define function. Data is used take data variable, global variable, local variable etc. Each segment contain the logical unit for process. Here logical address start from 0 to maximum limit. When process is executed the segment are moved from secondary storage to main memory. It used a segment table for each process. Segment table contain for process (base). PREPARED BY : DHAVAL R. PATEL Page 12
13 Q.13 Implementation of Segment: During the execution process CPU generated logical address to access a data. This logical address divided into two part segment no(s) & offset(d). Address Translation In Segmentation Segment no. connect with segment table & segment table contain the base & limit. Base means starting address of physical memory. Limit means process size. The limit must be less than the offset(d) otherwise there will be addressing error generated. Base & limit combine with located the physical address. Advantages: All segment are independent. The sharing process of data are very simple. It gives the various type of protection like read only. There is no internal fragmentation. Disadvantages: External fragmentation is possible.. There are difficulty to use a free memory. PREPARED BY : DHAVAL R. PATEL Page 13
14 Q.14 SWAPING: There are some technique used to executed a process. 1) Swapping 2) Virtual memory Definition: Swapping is technique in which process are move between main memory. Sometime there is not enough space in main memory to hold a current activity of process. In this case it move a data to disk & take again when required. Swapping used a some memory space of secondary storage device (disk) this space is called swapping area or swap area. Operation of moving a process from memory to swap area is called swap out. Operation of moving a process from swap area to memory is called swap in. External fragmentation is disadvantages of swapping. Q.16 VIRTUAL MEMORY: Virtual memory is technique that allows a process to execute & it partially located in main memory. When virtual memory remove a process the main memory should executed the process. So that is big advantages is that done large size of process than main memory. The logical address refer for virtual address & virtual address space is larger than physical memory. PREPARED BY : DHAVAL R. PATEL Page 14
15 Advantages: The process are not contain the physical memory size. We can done the large size of process than main memory. It is suitable for multiprogramming. Disadvantages: Program contain code to handle a unusual error condition. Array are allocated more memory than actually requirement. Implementation: 1) Demand paging 2) Demand Segmentation 3) Segmentation with paging. Q.17 Demand paging: PREPARED BY : DHAVAL R. PATEL Page 15
16 Demand Paging steps in handling page fault Process are keep in secondary storage device (disk). After executing process it swap into main memory. Page table is used for valid & invalid entry using bit. If bit is set to valid it include a page and load in memory. If it set a n invalid page table not load process in memory. Six Steps: 1) Whenever any logical address is generated page table is searched. If page validity bit is set to invalid, it means that required page is not available in memory. This is called page fault. 2) Operating system is required to bring this page into memory disk. 3) Operating system determines the location of that page on the disk. 4) That page is brought into free frame in memory. If free frame is not available, some replacement algorithm is used to replace occupied frame 5) Frame number is entered in the page table entry and valid bit is set to valid. 6) Instruction referenced by that logical address is restarted. Q.18 Memory hierarchy: Resister: Register is toppest layer of memory hierarchy. It store a instruction and temporary data. Data access time of resister is in sec. Memory capacity is < 1 KB. PREPARED BY : DHAVAL R. PATEL Page 16
17 Cache memory: Cache memory is fastest & small size memory. It supports to increases the speed of main memory. E.g. RAM Data access time of cache memory in n sec. Data capacity is 1 MB. Main memory: Main memory is most important part of computer system to done the process. Any data first access time of main memory is 10 n sec. Data capacity of main memory is MB. Magnetic Disk: It is used to store the permanent data. E.g. Hard Disk Data access time of magnetic disk is 10 m sec. Data capacity 5 50 GB. Magnetic Tape: Magnetic tape is used to store the backup data. Data access time is 100 sec. Data capacity is GB. Q.20 HARD DISK (MAGNETIC DISK, PLATERS) There are two type of structure of hard disk. 1) Physical structure 2) Logical structure PHYSICAL STRUCTURE: PREPARED BY : DHAVAL R. PATEL Page 17
18 Track: Sectors: In hard disk the platters are locate on the spindle. We can store the information at both side of surface. (Upper surface & lower surface). Cylinder: The circular part on magnetic disk which have a numbers of block is called track. There are number of blocks on track. In which we can store the data is called sectors. The tracks of every magnetic disk (platters) are connected with each other using cylinder. Read Write Head: Read write head, write a data on disk & read a data from disk. PREPARED BY : DHAVAL R. PATEL Page 18
19 Q.21 What is Operating System? List the different types of them. Operating system is as system software which interface the user and hardware it provide the plate from for application software 1. Simple Batch System 2. Multiprogramming Batch System 3. Multiprocessor System 4. Distributed Operating System 5. Real-time Operating System 6. Multithreading Operating System 7. Network Operating System. Q.22 Explain Batch Operating System In this type of system, there is no direct interaction between user and the computer. The user has to submit a job to a computer operator. Then computer operator places a batch of several jobs on an input device. Jobs are batched together by type of languages and requirement. Then a special program, the monitor, manages the execution of each program in the batch. The monitor is always in the main memory and available for execution. Following are some disadvantages of this type of system : 1. No interaction between user and computer. 2. No mechanism to prioritize processes. PREPARED BY : DHAVAL R. PATEL Page 19
20 Q.23 Explain Multiprogramming Batch System In this the operating system execute one job from memory. If there are one job in memory the next is ready and wait. Jobs in the memory are always less than the number of jobs on disk. If several jobs are ready to run at the same time, then system chooses which one to run. It used CPU Scheduling for select the job. In Multiprogramming system, CPU will never be idle and keeps on processing. Q.24 Explain Real Time Processing System. In this system Response Time is already fixed. That has been fixed by the Processor or CPU. Real Time System is used at those Places in which we Requires higher and Timely Response. These Types of Systems are used in Reservation. So when we specify the Request, the CPU will perform at that Time. There are two Types of Real Time System PREPARED BY : DHAVAL R. PATEL Page 20
21 1) Hard Real Time System: 2) Soft Real Time System: In the Hard Real Time System, Time is fixed and we can t Change any Moments of the Time of Processing. In the Soft Real Time System, we can change the time using command. Q.25 Explain multiprocessor system. A multiprocessor system consists of several processors in one physical memory. Multiprocessor system provides higher computing power and speed. In multiprocessor system all processors operate under single operating system. Following are some advantages of this type of system. 1. Good performance 2. Execution of several tasks by different processors concurrently. 3. increases the system's throughput 4. If possible, system divides task into many subtasks and then these subtasks can be executed in parallel in different processors. Q.26 Explain distributed operating systems. Distributed Means Data is Stored and Processed on Multiple Locations. When a Data is stored on to the Multiple Computers, those are placed in Different Locations. Distributed means In the Network, Network Collections of Computers are connected with Each other. If we want to Take Some Data From other Computer, Then we uses the Distributed Processing System. We can also Insert and Remove the Data from another Location. In this Data is shared between many users. And we can also Access all the Input and Output Devices by Multiple Users. PREPARED BY : DHAVAL R. PATEL Page 21
22 Q.27 Explain Network Operating System. A network operating system (NOS) is software that controls a network and their component access by multiple users. In this system we can share the hard disk, printer etc resources between computers. We can also make the group user system In this system there are server is used as main computer on them we install this syetm. It store central data Example : Window NT, Window 2003 server, Window 2008 server etc. Q.28 Explain Multithreading Operating System. Multithreading more than one user can done the process at a time, It manage multiple requests by the same user at a time. Each user request have separate identity is called thread. Threads are known as Lightweight processes. As each thread has its own independent resource for process execution. A multiple processes can required number of threads. Thread is an execution unit which consists of its own program counter, a stack, and a set of registers. Threads are implemented in following two ways User Level Threads User managed threads Kernel Level Threads Operating System managed threads Q.29 Explain LINUX Operating System. The Linux is open source operating system. Linux OS, is a freely distributable, cross-platform operating system based on Unix. That can be installed on PCs, laptops, netbooks, mobile and tablet devices, video game consoles, servers, supercomputers and more. The Linux OS is frequently packaged as a Linux distribution for both desktop and server use, and includes the Linux kernel It more support to network. Example : Ubuntu, Fedora, Red Hat PREPARED BY : DHAVAL R. PATEL Page 22
23 Q.30 Explain Different between windows and Linux. Q.31 Components of Linux System Linux Operating System has primarily three components Kernel o o o It is responsible for all major activities of this operating system. It consists of various modules and it interacts directly with the underlying hardware. Kernel provides system or application programs. System Library o System libraries are special functions or programs using which application programs or system utilities accesses Kernel's features. PREPARED BY : DHAVAL R. PATEL Page 23
24 System Utility o System Utility programs are responsible to do specialized, individual level tasks. Q.32 Basic Features of Linux/Unix. Following are some of the important features of Linux Operating System. Portable Portability means software can works on different types of hardware in same way. Open Source Run on any OS Multi-User multiple users can access system at same time. Multiprogramming Linux is a multiprogramming system means multiple applications can run at same time. Hierarchical File System Linux provides a standard file structure in which system files/ user files are arranged. Shell Linux provides a special interpreter program which can be used to execute commands of the operating system. Security Linux provides user security using authentication features like password protection/ controlled access to specific files/ encryption of data. PREPARED BY : DHAVAL R. PATEL Page 24
25 Q.33 Unix Architecture The following illustration shows the architecture of a Linux system The architecture of a Linux System consists of the following layers Hardware layer Hardware consists of all peripheral devices (RAM/ HDD/ CPU etc). Kernel It is the core component of Operating System, interacts directly with hardware, provides low level services to upper layer components. Shell An interface to kernel, hiding complexity of kernel's functions from users. The shell takes commands from the user and executes kernel's functions. Utilities Utility programs that provide the user most of the functionalities of an operating systems. Q.34 Unix Command. Q.35 Unix Shell Script. PREPARED BY : DHAVAL R. PATEL Page 25
UNIT III MEMORY MANAGEMENT
UNIT III MEMORY MANAGEMENT TOPICS TO BE COVERED 3.1 Memory management 3.2 Contiguous allocation i Partitioned memory allocation ii Fixed & variable partitioning iii Swapping iv Relocation v Protection
More informationTypes and Functions of Win Operating Systems
LEC. 2 College of Information Technology / Software Department.. Computer Skills I / First Class / First Semester 2017-2018 Types and Functions of Win Operating Systems What is an Operating System (O.S.)?
More informationPharmacy college.. Assist.Prof. Dr. Abdullah A. Abdullah
The kinds of memory:- 1. RAM(Random Access Memory):- The main memory in the computer, it s the location where data and programs are stored (temporally). RAM is volatile means that the data is only there
More informationSTORING DATA: DISK AND FILES
STORING DATA: DISK AND FILES CS 564- Spring 2018 ACKs: Dan Suciu, Jignesh Patel, AnHai Doan WHAT IS THIS LECTURE ABOUT? How does a DBMS store data? disk, SSD, main memory The Buffer manager controls how
More informationChapter 14 Operating Systems
Chapter 14 Operating Systems Ref Page Slide 1/54 Learning Objectives In this chapter you will learn about: Definition and need for operating system Main functions of an operating system Commonly used mechanisms
More informationChapter 14 Operating Systems
Chapter 14 Systems Ref Page Slide 1/54 Learning Objectives In this chapter you will learn about: Definition and need for operating Main functions of an operating Commonly used mechanisms for: Process management
More informationPreview. Memory Management
Preview Memory Management With Mono-Process With Multi-Processes Multi-process with Fixed Partitions Modeling Multiprogramming Swapping Memory Management with Bitmaps Memory Management with Free-List Virtual
More informationMemory Study Material
Computer memory refers to the devices that are used to store data or programs on a temporary or permanent basis for use in a computer. Any data or instruction entered into the memory of a computer is considered
More informationComputer Fundamentals : Pradeep K. Sinha& Priti Sinha
Computer Fundamentals Pradeep K. Sinha Priti Sinha Chapter 14 Operating Systems Slide 1/74 Learning Objectives In this chapter you will learn about: Definition and need for operating system Main functions
More informationOperating Systems (2INC0) 2017/18
Operating Systems (2INC0) 2017/18 Memory Management (09) Dr. Courtesy of Dr. I. Radovanovic, Dr. R. Mak (figures from Bic & Shaw) System Architecture and Networking Group Agenda Reminder: OS & resources
More informationChapter 1: Introduction. Operating System Concepts 9 th Edit9on
Chapter 1: Introduction Operating System Concepts 9 th Edit9on Silberschatz, Galvin and Gagne 2013 Objectives To describe the basic organization of computer systems To provide a grand tour of the major
More informationOPERATING SYSTEMS. After A.S.Tanenbaum, Modern Operating Systems 3rd edition Uses content with permission from Assoc. Prof. Florin Fortis, PhD
OPERATING SYSTEMS #8 After A.S.Tanenbaum, Modern Operating Systems 3rd edition Uses content with permission from Assoc. Prof. Florin Fortis, PhD MEMORY MANAGEMENT MEMORY MANAGEMENT The memory is one of
More informationChapter 5. File and Memory Management
K. K. Wagh Polytechnic, Nashik Department: Information Technology Class: TYIF Sem: 5G System Subject: Operating Name of Staff: Suyog S.Dhoot Chapter 5. File and Memory Management A. Define file and explain
More informationIntroduction to Virtual Memory Management
Introduction to Virtual Memory Management Minsoo Ryu Department of Computer Science and Engineering Virtual Memory Management Page X Demand Paging Page X Q & A Page X Memory Allocation Three ways of memory
More informationChapter 1: Introduction
Chapter 1: Introduction What is an operating system? Simple Batch Systems Multiprogramming Batched Systems Time-Sharing Systems Personal-Computer Systems Parallel Systems Distributed Systems Real -Time
More informationMemory Management. Reading: Silberschatz chapter 9 Reading: Stallings. chapter 7 EEL 358
Memory Management Reading: Silberschatz chapter 9 Reading: Stallings chapter 7 1 Outline Background Issues in Memory Management Logical Vs Physical address, MMU Dynamic Loading Memory Partitioning Placement
More informationContents. Memory System Overview Cache Memory. Internal Memory. Virtual Memory. Memory Hierarchy. Registers In CPU Internal or Main memory
Memory Hierarchy Contents Memory System Overview Cache Memory Internal Memory External Memory Virtual Memory Memory Hierarchy Registers In CPU Internal or Main memory Cache RAM External memory Backing
More informationPerformance of Various Levels of Storage. Movement between levels of storage hierarchy can be explicit or implicit
Memory Management All data in memory before and after processing All instructions in memory in order to execute Memory management determines what is to be in memory Memory management activities Keeping
More informationCache Performance and Memory Management: From Absolute Addresses to Demand Paging. Cache Performance
6.823, L11--1 Cache Performance and Memory Management: From Absolute Addresses to Demand Paging Asanovic Laboratory for Computer Science M.I.T. http://www.csg.lcs.mit.edu/6.823 Cache Performance 6.823,
More informationI/O Management and Disk Scheduling. Chapter 11
I/O Management and Disk Scheduling Chapter 11 Categories of I/O Devices Human readable used to communicate with the user video display terminals keyboard mouse printer Categories of I/O Devices Machine
More informationMemory and multiprogramming
Memory and multiprogramming COMP342 27 Week 5 Dr Len Hamey Reading TW: Tanenbaum and Woodhull, Operating Systems, Third Edition, chapter 4. References (computer architecture): HP: Hennessy and Patterson
More informationMisc. Third Generation Batch Multiprogramming. Fourth Generation Time Sharing. Last Time Evolution of OSs
Third Generation Batch Multiprogramming Misc. Problem: but I/O still expensive; can happen in middle of job Idea: have a pool of ready jobs in memory, switch to one when another needs I/O When one job
More informationCHAPTER 11: IMPLEMENTING FILE SYSTEMS (COMPACT) By I-Chen Lin Textbook: Operating System Concepts 9th Ed.
CHAPTER 11: IMPLEMENTING FILE SYSTEMS (COMPACT) By I-Chen Lin Textbook: Operating System Concepts 9th Ed. File-System Structure File structure Logical storage unit Collection of related information File
More informationUNIT:4 MEMORY ORGANIZATION
1 UNIT:4 MEMORY ORGANIZATION TOPICS TO BE COVERED. 4.1 Memory Hierarchy 4.2 Memory Classification 4.3 RAM,ROM,PROM,EPROM 4.4 Main Memory 4.5Auxiliary Memory 4.6 Associative Memory 4.7 Cache Memory 4.8
More informationChapter 8. Virtual Memory
Operating System Chapter 8. Virtual Memory Lynn Choi School of Electrical Engineering Motivated by Memory Hierarchy Principles of Locality Speed vs. size vs. cost tradeoff Locality principle Spatial Locality:
More informationSegmentation with Paging. Review. Segmentation with Page (MULTICS) Segmentation with Page (MULTICS) Segmentation with Page (MULTICS)
Review Segmentation Segmentation Implementation Advantage of Segmentation Protection Sharing Segmentation with Paging Segmentation with Paging Segmentation with Paging Reason for the segmentation with
More informationCOMPUTER ARCHITECTURE AND ORGANIZATION
Memory System 1. Microcomputer Memory Memory is an essential component of the microcomputer system. It stores binary instructions and datum for the microcomputer. The memory is the place where the computer
More informationCOA. Prepared By: Dhaval R. Patel Page 1. Q.1 Define MBR.
Q.1 Define MBR. MBR( Memory buffer register) A Memory Buffer Register (MBR) is the register in a computers processor that stores the data being transferred to and from the devices It allowing the processor
More informationMEMORY MANAGEMENT/1 CS 409, FALL 2013
MEMORY MANAGEMENT Requirements: Relocation (to different memory areas) Protection (run time, usually implemented together with relocation) Sharing (and also protection) Logical organization Physical organization
More informationCSC 553 Operating Systems
CSC 553 Operating Systems Lecture 1- Computer System Overview Operating System Exploits the hardware resources of one or more processors Provides a set of services to system users Manages secondary memory
More informationMemory management. Last modified: Adaptation of Silberschatz, Galvin, Gagne slides for the textbook Applied Operating Systems Concepts
Memory management Last modified: 26.04.2016 1 Contents Background Logical and physical address spaces; address binding Overlaying, swapping Contiguous Memory Allocation Segmentation Paging Structure of
More informationCS370 Operating Systems
CS370 Operating Systems Colorado State University Yashwant K Malaiya Fall 2016 Lecture 2 Slides based on Text by Silberschatz, Galvin, Gagne Various sources 1 1 2 System I/O System I/O (Chap 13) Central
More informationOperating Systems. Introduction & Overview. Outline for today s lecture. Administrivia. ITS 225: Operating Systems. Lecture 1
ITS 225: Operating Systems Operating Systems Lecture 1 Introduction & Overview Jan 15, 2004 Dr. Matthew Dailey Information Technology Program Sirindhorn International Institute of Technology Thammasat
More informationOperating Systems, Fall
Operating Systems: Memory management Fall 2008 Basic Memory Management: One program Monoprogramming without Swapping or Paging Tiina Niklander No memory abstraction, no address space, just an operating
More informationOperating Systems, Fall
Operating Systems: Memory management Fall 2008 Tiina Niklander Memory Management Programmer wants memory to be Indefinitely large Indefinitely fast Non volatile Memory hierarchy Memory manager handles
More informationMemory management: outline
Memory management: outline Concepts Swapping Paging o Multi-level paging o TLB & inverted page tables 1 Memory size/requirements are growing 1951: the UNIVAC computer: 1000 72-bit words! 1971: the Cray
More informationOperating System Review
COP 4225 Advanced Unix Programming Operating System Review Chi Zhang czhang@cs.fiu.edu 1 About the Course Prerequisite: COP 4610 Concepts and Principles Programming System Calls Advanced Topics Internals,
More informationMemory management: outline
Memory management: outline Concepts Swapping Paging o Multi-level paging o TLB & inverted page tables 1 Memory size/requirements are growing 1951: the UNIVAC computer: 1000 72-bit words! 1971: the Cray
More informationChapter 8 Virtual Memory
Chapter 8 Virtual Memory Contents Hardware and control structures Operating system software Unix and Solaris memory management Linux memory management Windows 2000 memory management Characteristics of
More informationComputer. Operating Systems Introduction to Operating System (OS)
Computer Operating Systems Introduction to Operating System (OS) A computer is a system composed of two major components: hardware and software. Hardware is the physical equipment. Software is the collection
More informationMemory management. Knut Omang Ifi/Oracle 10 Oct, 2012
Memory management Knut Omang Ifi/Oracle 1 Oct, 212 (with slides from V. Goebel, C. Griwodz (Ifi/UiO), P. Halvorsen (Ifi/UiO), K. Li (Princeton), A. Tanenbaum (VU Amsterdam), and M. van Steen (VU Amsterdam))
More informationMemory Management Topics. CS 537 Lecture 11 Memory. Virtualizing Resources
Memory Management Topics CS 537 Lecture Memory Michael Swift Goals of memory management convenient abstraction for programming isolation between processes allocate scarce memory resources between competing
More informationMemory Management. Disclaimer: some slides are adopted from book authors slides with permission 1
Memory Management Disclaimer: some slides are adopted from book authors slides with permission 1 CPU management Roadmap Process, thread, synchronization, scheduling Memory management Virtual memory Disk
More informationIntroduction To Computer Hardware. Hafijur Rahman
Introduction To Computer Hardware Lecture 2 Hafijur Rahman What is a Computer? A computer is an electronic device, which can input, process, and output data. input processing output A computer is a machine
More information(Refer Slide Time: 1:26)
Information Security-3 Prof. V Kamakoti Department of Computer science and Engineering Indian Institute of Technology Madras Basics of Unix and Network Administration Operating Systems Introduction Mod01,
More informationMEMORY. Computer memory refers to the hardware device that are used to store and access data or programs on a temporary or permanent basis.
MEMORY Computer memory refers to the hardware device that are used to store and access data or programs on a temporary or permanent basis. There are TWO TYPE of nature of memory in a computer. Temporary/
More informationDisk Scheduling COMPSCI 386
Disk Scheduling COMPSCI 386 Topics Disk Structure (9.1 9.2) Disk Scheduling (9.4) Allocation Methods (11.4) Free Space Management (11.5) Hard Disk Platter diameter ranges from 1.8 to 3.5 inches. Both sides
More informationECE331: Hardware Organization and Design
ECE331: Hardware Organization and Design Lecture 29: an Introduction to Virtual Memory Adapted from Computer Organization and Design, Patterson & Hennessy, UCB Overview Virtual memory used to protect applications
More informationChapter 8 & Chapter 9 Main Memory & Virtual Memory
Chapter 8 & Chapter 9 Main Memory & Virtual Memory 1. Various ways of organizing memory hardware. 2. Memory-management techniques: 1. Paging 2. Segmentation. Introduction Memory consists of a large array
More informationWindows 7 Overview. Windows 7. Objectives. The History of Windows. CS140M Fall Lake 1
Windows 7 Overview Windows 7 Overview By Al Lake History Design Principles System Components Environmental Subsystems File system Networking Programmer Interface Lake 2 Objectives To explore the principles
More informationChapter 8: Memory- Management Strategies. Operating System Concepts 9 th Edition
Chapter 8: Memory- Management Strategies Operating System Concepts 9 th Edition Silberschatz, Galvin and Gagne 2013 Chapter 8: Memory Management Strategies Background Swapping Contiguous Memory Allocation
More informationUNIT 4 Device Management
UNIT 4 Device Management (A) Device Function. (B) Device Characteristic. (C) Disk space Management. (D) Allocation and Disk scheduling Methods. [4.1] Device Management Functions The management of I/O devices
More informationWelcome to this course on Operating System Concepts
Welcome to this course on Operating System Concepts 1 2 3 4 6 8 12 13 Operating System is a set of system programs which provides an environment to help the user to execute the programs. The OS is
More informationFile Systems. OS Overview I/O. Swap. Management. Operations CPU. Hard Drive. Management. Memory. Hard Drive. CSI3131 Topics. Structure.
File Systems I/O Management Hard Drive Management Virtual Memory Swap Memory Management Storage and I/O Introduction CSI3131 Topics Process Management Computing Systems Memory CPU Peripherals Processes
More informationTypical File Extensions File Structure
CS 355 Operating Systems File Systems File Systems A file is a collection of data records grouped together for purpose of access control and modification A file system is software responsible for creating,
More informationSome popular Operating Systems include Linux Operating System, Windows Operating System, VMS, OS/400, AIX, z/os, etc.
An Operating System (OS) is an interface between computer user and computer hardware. An operating system is software which performs all the basic tasks like file management, memory management, process
More informationMotivation. Memory Management. Memory Management. Computer Hardware Review
Memory Management Motivation Vera Goebel Department of Informatics, University of Oslo with slides from: C. Griwodz (Ifi/UiO), P. Halvorsen (Ifi/UiO), K. Li (Princeton), A. Tanenbaum (VU Amsterdam), and
More informationChapter 1 Computer System Overview
Operating Systems: Internals and Design Principles Chapter 1 Computer System Overview Ninth Edition By William Stallings Operating System Exploits the hardware resources of one or more processors Provides
More informationPROCESS VIRTUAL MEMORY. CS124 Operating Systems Winter , Lecture 18
PROCESS VIRTUAL MEMORY CS124 Operating Systems Winter 2015-2016, Lecture 18 2 Programs and Memory Programs perform many interactions with memory Accessing variables stored at specific memory locations
More informationLecture -1- By lec. (Eng.) Hind Basil University of technology Department of Materials Engineering
Lecture -1- By lec. (Eng.) Hind Basil University of technology Department of Materials Engineering What is Computer? Computer is an advanced electronic device that takes raw data as input from the user
More informationFile System: Interface and Implmentation
File System: Interface and Implmentation Two Parts Filesystem Interface Interface the user sees Organization of the files as seen by the user Operations defined on files Properties that can be read/modified
More informationOperating system Dr. Shroouq J.
2.2.2 DMA Structure In a simple terminal-input driver, when a line is to be read from the terminal, the first character typed is sent to the computer. When that character is received, the asynchronous-communication
More informationIntroduction to Computer Systems and Operating Systems
Introduction to Computer Systems and Operating Systems Minsoo Ryu Real-Time Computing and Communications Lab. Hanyang University msryu@hanyang.ac.kr Topics Covered 1. Computer History 2. Computer System
More informationOperating Systems. Designed and Presented by Dr. Ayman Elshenawy Elsefy
Operating Systems Designed and Presented by Dr. Ayman Elshenawy Elsefy Dept. of Systems & Computer Eng.. AL-AZHAR University Website : eaymanelshenawy.wordpress.com Email : eaymanelshenawy@yahoo.com Reference
More informationDownloaded from various sources on the NET
Overview Computers. Hardware components of a Computer. Purpose and functions of computer operating systems. Evolution of computer operating systems. Operating systems available today. Downloaded from various
More informationOperating Systems. studykorner.org
Operating Systems Outlines What are Operating Systems? All components Description, Types of Operating Systems Multi programming systems, Time sharing systems, Parallel systems, Real Time systems, Distributed
More informationCS370 Operating Systems
CS370 Operating Systems Colorado State University Yashwant K Malaiya Spring 2018 Lecture 2 Slides based on Text by Silberschatz, Galvin, Gagne Various sources 1 1 2 What is an Operating System? What is
More informationChapter One. Introduction to Computer System
Principles of Programming-I / 131101 Prepared by: Dr. Bahjat Qazzaz -------------------------------------------------------------------------------------------- Chapter One Introduction to Computer System
More informationVirtual Memory: From Address Translation to Demand Paging
Constructive Computer Architecture Virtual Memory: From Address Translation to Demand Paging Arvind Computer Science & Artificial Intelligence Lab. Massachusetts Institute of Technology November 12, 2014
More informationIntroduction to OS. File Management. MOS Ch. 4. Mahmoud El-Gayyar. Mahmoud El-Gayyar / Introduction to OS 1
Introduction to OS File Management MOS Ch. 4 Mahmoud El-Gayyar elgayyar@ci.suez.edu.eg Mahmoud El-Gayyar / Introduction to OS 1 File Management Objectives Provide I/O support for a variety of storage device
More informationChapter 7 Memory Management
Operating Systems: Internals and Design Principles Chapter 7 Memory Management Ninth Edition William Stallings Frame Page Segment A fixed-length block of main memory. A fixed-length block of data that
More informationVirtual Memory. Patterson & Hennessey Chapter 5 ELEC 5200/6200 1
Virtual Memory Patterson & Hennessey Chapter 5 ELEC 5200/6200 1 Virtual Memory Use main memory as a cache for secondary (disk) storage Managed jointly by CPU hardware and the operating system (OS) Programs
More informationRegisters Cache Main memory Magnetic disk Magnetic tape
Operating Systems: Memory management Mon 14.9.2009 Tiina Niklander Memory Management Programmer wants memory to be Indefinitely large Indefinitely fast Non volatile Memory hierarchy small amount of fast,
More informationChapter 8: Main Memory
Chapter 8: Main Memory Chapter 8: Memory Management Background Swapping Contiguous Memory Allocation Segmentation Paging Structure of the Page Table Example: The Intel 32 and 64-bit Architectures Example:
More informationProcesses and Tasks What comprises the state of a running program (a process or task)?
Processes and Tasks What comprises the state of a running program (a process or task)? Microprocessor Address bus Control DRAM OS code and data special caches code/data cache EAXEBP EIP DS EBXESP EFlags
More informationCS450/550 Operating Systems
CS450/550 Operating Systems Lecture 4 memory Palden Lama Department of Computer Science CS450/550 Memory.1 Review: Summary of Chapter 3 Deadlocks and its modeling Deadlock detection Deadlock recovery Deadlock
More informationDepartment of Computer Engineering University of California at Santa Cruz. File Systems. Hai Tao
File Systems Hai Tao File System File system is used to store sources, objects, libraries and executables, numeric data, text, video, audio, etc. The file system provide access and control function for
More informationVirtual Memory. Reading. Sections 5.4, 5.5, 5.6, 5.8, 5.10 (2) Lecture notes from MKP and S. Yalamanchili
Virtual Memory Lecture notes from MKP and S. Yalamanchili Sections 5.4, 5.5, 5.6, 5.8, 5.10 Reading (2) 1 The Memory Hierarchy ALU registers Cache Memory Memory Memory Managed by the compiler Memory Managed
More informationTape pictures. CSE 30341: Operating Systems Principles
Tape pictures 4/11/07 CSE 30341: Operating Systems Principles page 1 Tape Drives The basic operations for a tape drive differ from those of a disk drive. locate positions the tape to a specific logical
More informationCHAPTER-1: INTRODUCTION TO OPERATING SYSTEM:
CHAPTER-1: INTRODUCTION TO OPERATING SYSTEM: TOPICS TO BE COVERED 1.1 Need of Operating System 1.2 Evolution of os 1.3 operating system i. Batch ii. iii. iv. Multiprogramming Time sharing Real time v.
More informationOperating System: an Overview. Lucia Dwi Krisnawati, MA
Operating System: an Overview Lucia Dwi Krisnawati, MA What is an Operating System? A program that acts as an intermediary between a user of a computer and the computer hardware. Operating system goals:
More informationMemory Management. Disclaimer: some slides are adopted from book authors slides with permission 1
Memory Management Disclaimer: some slides are adopted from book authors slides with permission 1 CPU management Roadmap Process, thread, synchronization, scheduling Memory management Virtual memory Disk
More informationChapter 11: File System Implementation. Objectives
Chapter 11: File System Implementation Objectives To describe the details of implementing local file systems and directory structures To describe the implementation of remote file systems To discuss block
More information1. What is the difference between primary storage and secondary storage?
1. What is the difference between primary storage and secondary storage? Primary Storage is - Limited - Volatile - Expensive - Fast (May be accessed directly from the CPU) - Retrieving a single character
More informationMemory Management. Jo, Heeseung
Memory Management Jo, Heeseung Today's Topics Why is memory management difficult? Old memory management techniques: Fixed partitions Variable partitions Swapping Introduction to virtual memory 2 Memory
More informationChapter 14: Mass-Storage Systems
Chapter 14: Mass-Storage Systems Disk Structure Disk Scheduling Disk Management Swap-Space Management RAID Structure Disk Attachment Stable-Storage Implementation Tertiary Storage Devices Operating System
More informationChapter 8: Memory-Management Strategies
Chapter 8: Memory-Management Strategies Chapter 8: Memory Management Strategies Background Swapping Contiguous Memory Allocation Segmentation Paging Structure of the Page Table Example: The Intel 32 and
More informationTo provide a grand tour of the major operating systems components To provide coverage of basic computer system organization
Introduction What Operating Systems Do Computer-System Organization Computer-System Architecture Operating-System Structure Operating-System Operations Process Management Memory Management Storage Management
More informationChapter 8. Operating System Support. Yonsei University
Chapter 8 Operating System Support Contents Operating System Overview Scheduling Memory Management Pentium II and PowerPC Memory Management 8-2 OS Objectives & Functions OS is a program that Manages the
More informationOperating Systems Memory Management. Mathieu Delalandre University of Tours, Tours city, France
Operating Systems Memory Management Mathieu Delalandre University of Tours, Tours city, France mathieu.delalandre@univ-tours.fr 1 Operating Systems Memory Management 1. Introduction 2. Contiguous memory
More informationBBM371- Data Management. Lecture 2: Storage Devices
BBM371- Data Management Lecture 2: Storage Devices 18.10.2018 Memory Hierarchy cache Main memory disk Optical storage Tapes V NV Traveling the hierarchy: 1. speed ( higher=faster) 2. cost (lower=cheaper)
More informationINTRODUCTION TO Data Storage
Introduction to Computing INTRODUCTION TO Data Storage CPU AND MICROPROCESSOR Memory Used to store data, instructions, and information The operating system and other system software Application programs
More informationOPERATING SYSTEMS & UTILITY PROGRAMS
OPERATING SYSTEMS & UTILITY PROGRAMS System Software System software consists of the programs that control the operations of the computer and its devices. Functions that system software performs include:
More informationTopic 4: Storage Devices
Topic 4: Storage Devices 4.1 Introduction A storage device is a computer peripheral which is used to store data and programs for a specific interval of time. A computer system usually contains several
More informationAn Overview of the Computer System. Kafui A. Prebbie 24
An Overview of the Computer System Kafui A. Prebbie -kafui@kafui.com 24 The Parts of a Computer System What is a Computer? Hardware Software Data Users Kafui A. Prebbie -kafui@kafui.com 25 The Parts of
More informationEastern Mediterranean University School of Computing and Technology CACHE MEMORY. Computer memory is organized into a hierarchy.
Eastern Mediterranean University School of Computing and Technology ITEC255 Computer Organization & Architecture CACHE MEMORY Introduction Computer memory is organized into a hierarchy. At the highest
More informationChapter 1: Introduction. Operating System Concepts 8th Edition,
Chapter 1: Introduction, Administrivia Reading: Chapter 1. Next time: Continued Grand Tour. 1.2 Outline Common computer system devices. Parallelism within an operating system. Interrupts. Storage operation,
More informationDEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING Operating System Third Year CSE( Sem:I) 2 marks Questions and Answers UNIT I
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING Operating System Third Year CSE( Sem:I) 2 marks Questions and Answers UNIT I 1. What is an Operating system? An operating system is a program that manages
More informationChapter 11. I/O Management and Disk Scheduling
Operating System Chapter 11. I/O Management and Disk Scheduling Lynn Choi School of Electrical Engineering Categories of I/O Devices I/O devices can be grouped into 3 categories Human readable devices
More informationComputer Organization (Autonomous)
2-7-27 Computer Organization (Autonomous) UNIT IV Sections - A & D SYLLABUS The Memory System: Memory Hierarchy, - RAM and ROM Chips, Memory Address Maps, Memory Connection to, Auxiliary Magnetic Disks,
More information