• Chapter 6: Managing Memory
  • part of the process address space uniquely floor containing the file. After




    Download 6,34 Mb.
    Pdf ko'rish
    bet60/203
    Sana10.01.2024
    Hajmi6,34 Mb.
    #134102
    1   ...   56   57   58   59   60   61   62   63   ...   203
    Bog'liq
    Linux This Book Includes 4 Manuscripts The Underground Bible


    part of the process address space uniquely floor containing the file. After
    that, an operation to write to such memory causes the contents of the
    displayed file to change, which immediately becomes available to all
    applications that have access to that file. Other applications can also display
    the same file in their address space and communicate with one another
    through it.
    Conclusions

    Streams of one interacting process have access to shared data
    hosted in the address space of that process. Any stream is able to
    change this data at any time and cause a state of competition when the
    outcome depends on the flow sequence.
    ❖ 
    Flow synchronization mechanisms are used to ensure correct access
    to shared data; the main one is to ensure mutual exclusion when only
    one stream can access such data at a particular time. Blocking is used
    to organize mutual exclusion.

    Various synchronization primitives can be used to solve
    synchronization problems. The simplest primitives include


    semaphores, mutexes, conditional variables, read-write locks, and
    barriers.
    ❖ 
    A higher-level mechanism is a monitor concept that combines
    mutexes and conditional variables and sets some rules for their
    interaction to protect shared data. Using monitors is the most
    consistent approach to stream synchronization.


    Chapter 6:
    Managing Memory


    Different types of memory are organized into a hierarchy. At the lower
    levels of such a hierarchy, there is a cheaper and slower memory of a larger
    volume, and as the hierarchy moves upwards the memory becomes more
    expensive and faster (and its volume becomes smaller). The cheapest and
    slowest storage device is the hard drive. It is also called
    secondary storage. Faster and more expensive memory is stored in the
    memory chips installed on the computer - a memory called the main
    memory. Faster storage facilities have different cache processors, and
    at least, these caches are more limited.
    Managing memory is a rather difficult task. The required memory
    characteristics are often not enough identified, and in order not to interfere
    with the work of the user, it is necessary to implement means of
    coordination of different types of memory. Thus, the current application
    cannot fit entirely in the main memory, while unused code can use
    tymch and COBOL stored on the hard drive. In this section, we look at
    technologies that use primary memory.

    Download 6,34 Mb.
    1   ...   56   57   58   59   60   61   62   63   ...   203




    Download 6,34 Mb.
    Pdf ko'rish

    Bosh sahifa
    Aloqalar

        Bosh sahifa



    part of the process address space uniquely floor containing the file. After

    Download 6,34 Mb.
    Pdf ko'rish