Cis Memory Management

Powerful Essays
Topics:
CIS:328

Abstract
The purpose of this paper is to show how memory is used in executing programs and its critical support for applications. C++ is a general purpose programming language that runs programs using memory management. Two operating system environments are commonly used in compiling, building and executing C++ applications. These are the windows and UNIX / Linux (or some UNIX / Linux derivative) operating system. In this paper we will explore the implementation of memory management, processes and threads.
Memory Management

What is a Memory Model?
A memory model allows a compiler to perform many important optimizations. Even simple compiler optimizations like loop fusion move statements in the program can influence the order of read and write operations of potentially shared variables. Changes in the ordering of reads and writes can cause race conditions. Without a memory model, a compiler is not allowed to apply such optimizations to multi-threaded programs in general, or only in special cases.
Modern programming languages like Java therefore implement a memory model. The memory model specifies synchronization barriers that are established via special, well-defined synchronization operations such as acquiring a lock by entering a synchronized block or method. The memory model stipulates that changes to the values of shared variables only need to be made visible to other threads when such a synchronization barrier is reached. Moreover, the entire notion of a race condition is entirely defined over the order of operations with respect to these memory barriers.
These semantics then give optimizing compilers a higher degree of freedom when applying optimizations: the compiler needs to make sure only that the values of (potentially shared) variables at synchronization barriers are guaranteed to be the same in both the optimized and un-optimized code. In particular, reordering statements in a block of code that contains no synchronization barrier is

You May Also Find These Documents Helpful

  • Satisfactory Essays

    memory management

    • 500 Words
    • 2 Pages

    Memory Management Memory management can become very complex in modern day computers as with the requirements for the management of the memory. There are four categories that must be satisfied within memory management which are address mapping and relocation, protection and sharing, application organization, and two-level memory organization. Had one of these categories not been satisfied through memory management, then it is a failure and could cause major problems in terms of an operating system…

    • 500 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Memory Management

    • 442 Words
    • 2 Pages

    Memory Management Requirements Kari Amenhauser POS/355 May 11, 2015 Karen Clark Memory Management Memory management is important when working with computers. Memory management is where the computer divides memory to accommodate multiple processes. Memory needs to be redistributed to help with the processor so that programs can run smoother and faster. The requirements for memory management are, relocation, protection, sharing, logical organization, and physical organization. First, there is relocation…

    • 442 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Memory Management

    • 1112 Words
    • 5 Pages

    MEMORY MANAGEMENT Research Paper ABSTRACT: To manage the contents of the processor’s memory and storage, memory management is used. To use applications and data, first, it should be brought to memory. Memory use also increases as workload on system increases. To optimize the use of processor’s memory, we hence use memory management. INTRODUCTION: After reading the research papers on memory management I concluded that next to CPU physical memory is one of the most important resources in a computer…

    • 1112 Words
    • 5 Pages
    Powerful Essays
  • Satisfactory Essays

    Memory Management

    • 341 Words
    • 2 Pages

    Memory Management POS/355 Sheenah S Concepcion July 10, 2013 Scott Beckstrand Memory management is the process of managing computer memory. The memory management subsystem of the operating system carries out this task. Since the beginning of computing, there has always existed the need for more memory than the existing physical memory in the system. Both Windows and Linux are operating systems. These operating systems perform basic tasks…

    • 341 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Memory Management

    • 589 Words
    • 3 Pages

    Memory Management Requirements Marian Bennett POS/355 October 15, 2012 Jeff Rugg Memory Management Requirements There are two different types of programming systems; uniprogramming and multiprogramming. In uniprogramming there is just an operating system and the program that is currently being utilized. In multiprogramming, it is just as the term says, working to accommodate multiple programs. When are there is more than one program being executed at a time, there needs to be proper protocol…

    • 589 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Memory Management

    • 490 Words
    • 2 Pages

    Memory Management Requirements POS 355 The memory management process in operating systems proceeds under the requirements that include relocation, protection, sharing, logical organization, and physical organization. Each of these requirements is necessary in order for the operating system to correctly carry out the task of subdivision within the part of the memory where the program is being executed. Due to the complexity of memory location, multiprogramming system…

    • 490 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Memory Management

    • 1097 Words
    • 5 Pages

    Operating Systems POS Requirements of Memory Management Memory Management is the most highly used resource on your computer; different operating systems all have a different approach on how to use memory and common factors when using memory. Every process needs it to process a code or function. More so memory management allow the operating system to reserve parts of memory to programs when they are requested and complete as many processes into memory. Memory Management has gotten more complicated throughout…

    • 1097 Words
    • 5 Pages
    Good Essays
  • Good Essays

    Memory Management

    • 513 Words
    • 3 Pages

    Memory Management Requirements Raven POS 355 July 10, 2013 Matt Bestrand Memory Management Requirements With memory management there are certain requirements that it is intended to satisfy. Those requirements are relocation, protection, sharing, logical organization, and physical organization. As an essential part of memory management these areas will be discussed below. Relocation The importance of relocation according to Stallings (2012), is to maximize utilization of the processor by…

    • 513 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Memory Management

    • 2154 Words
    • 9 Pages

    Synthesis Memory Management Binding of Instructions and Data to Memory Compile time: * known memory location * absolute code can be generated * must recompile code if starting location changes. Load time: * generate re-locatable code if memory location is not known at compile time. Execution time: * process can be moved during its execution from one memory segment to another. * need hardware support for address mapping Logical vs. Physical Address Space * A logical…

    • 2154 Words
    • 9 Pages
    Good Essays
  • Best Essays

    CIS 517: Project Management

    • 2741 Words
    • 11 Pages

    Week Ten Assignment Five Technical Term Project Paper Not Me Never Gunna Tell In Bad Company CIS 517 – Project Management Dr. Seuss Any Time & Any When Abstract Big-Prog is a small project management consulting company that will oversee moving Fiction Corporation from its primary data center operation to a new headquarters several miles away. This paper will describe how to initiate the project, create a project plan for moving the data center, considering the budget and time…

    • 2741 Words
    • 11 Pages
    Best Essays