• Types Of Planning Distinguish between long - term scheduling, medium-term scheduling, and short-term scheduling. Long-Term Planning
  • Medium-Term 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
    bet42/203
    Sana10.01.2024
    Hajmi6,34 Mb.
    #134102
    1   ...   38   39   40   41   42   43   44   45   ...   203
    Bog'liq
    Linux This Book Includes 4 Manuscripts The Underground Bible

    Planning Principles
    The principles of flow planning are applicable first of all to multithreaded
    systems with 1: 1 scheme implementation (only kernel flows are planned
    here), as well as to systems with the implementation of process modules. In
    the latter case, the term “process” can be used instead of the term “flow”
    and the information necessary for planning can be stored in the structures of
    these processes. More complex scheduling principles are used in multi-
    threaded systems for which the number of user threads does not match the
    number of kernel threads (Schemes 1: M and M: N). They require two
    schedulers: one for kernel-level operation, the other for user mode.
    Types Of Planning
    Distinguish between long - term scheduling, medium-term scheduling, and
    short-term scheduling.
    Long-Term Planning
    Long-term planning means determining which of the programs should be in
    the vicinity to perform the download. This scheduling is also called static
    because it does not depend on the current state of the system. It played an
    important role in batch systems when it was known in advance what
    processes needed to be completed and the tasks could be scheduled. In
    interactive systems (eg systems with time-sharing) loading processes in
    principally engaged users, and it is not subject to planning; so they usually
    use a simplified long-term planning strategy. The system allows you to
    create processes and threads to reach some maximum limit, and then further
    attempts to create a new process or flow will cause an error. This strategy is
    also based on the psychology of users, who, feeling uncomfortable in an
    overloaded system, can interrupt work with it, which leads to reduced load.
    Medium-Term Planning


    Medium-term scheduling controls the transition of paused flows to standby
    and back. In the control unit which is ready for execution, threads are
    immediately organized in a structure called queue of ready threads ( or
    ready queue ).
    The transition to a suspended state can be caused by the following factors:
    ❖ 
    Waiting for an I / O operation
    ❖ 
    Waiting for the completion of another thread (joining)
    ❖ 
    Blocking a stream because it needs to be synchronized with other
    streams
    Usually, for the correct organization of this expectation, in addition to the
    queue of ready threads, they implement an additional set of queues. Each
    such queue is associated with a resource that may cause flow expectations
    (eg, an I / O device); These queues are called scheduling queues or waiting
    for queues  ( wait for queues ). The mid-term scheduler manages all these
    queues by moving threads between them and the queue of ready threads.

    Download 6,34 Mb.
    1   ...   38   39   40   41   42   43   44   45   ...   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