• FIFO Planning
  • Linux: This Book Includes 4 Manuscripts. The Underground Bible to the unix operating System with Tools On Security and Kali Hacking to Understand Computer Programming, Data Science and Command Line




    Download 6,34 Mb.
    Pdf ko'rish
    bet44/203
    Sana10.01.2024
    Hajmi6,34 Mb.
    #134102
    1   ...   40   41   42   43   44   45   46   47   ...   203
    Bog'liq
    Linux This Book Includes 4 Manuscripts The Underground Bible

    Planning Algorithms
    The scheduling algorithm allows a short-term scheduler to choose from the
    ready-to-run threads the one to be executed next. It can be said that
    planning algorithms implement planning policies.
    Depending on the planning strategy implemented by the algorithms, they
    are divided into displacement and non-displacement. Displacement
    algorithms interrupt flows during their execution, non-displacement
    algorithms do not interrupt. Some algorithms fit only one of these
    strategies, others may have both displacement and non-displacement
    implementations.
    FIFO Planning
    Consider the simplest ("naive") indelible algorithm in which flows are
    executed in order of their appearance on the system and executed before


    going to standby explicit transmission or completion. The queues of
    finished streams are organized according to the FIFO principle, so the
    algorithm is called the FIFO algorithm.
    As soon as a new stream is created in the system, its control unit is added to
    the tail of the queue. When the processor is released, it is provided to the
    stream from the queue head.
    This algorithm has many disadvantages:
    ❖ 
    It is by definition irreversible
    ❖ 
    The average response time for it may be quite significant (for
    example, if the former receives a stream with a long CPU usage
    interval, other streams will wait even if they themselves use only short
    intervals)
    ❖ 
    It is subject to the convoy effect (convoy effect)
    The effect of the convoy can be explained by this situation. Suppose there is
    a single thread (let's call it T 
    CPU 
    ) in the system, limited by the processor
    capabilities, and many T 
    io 
    threads limited by the I / O capabilities. Sooner
    or later, the T 
    CPU 
    thread will be available to the processor and will execute
    instructions with a long interval of use of the CPU. During this time, the
    other T 
    io 
    streams will complete the I / O, queue the finished threads and
    wait there, with the idle I / O devices. When T 
    CPU 
    finally block and will
    transfer control of all flows T 
    io 
    quickly follow the instructions of their
    ranges CPU and then move to the IO. After that, T 
    CPU 
    will again capture
    the processor for a long time, etc.

    Download 6,34 Mb.
    1   ...   40   41   42   43   44   45   46   47   ...   203




    Download 6,34 Mb.
    Pdf ko'rish

    Bosh sahifa
    Aloqalar

        Bosh sahifa



    Linux: This Book Includes 4 Manuscripts. The Underground Bible to the unix operating System with Tools On Security and Kali Hacking to Understand Computer Programming, Data Science and Command Line

    Download 6,34 Mb.
    Pdf ko'rish