• Features Completion Streams
  • 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
    bet30/203
    Sana10.01.2024
    Hajmi6,34 Mb.
    #134102
    1   ...   26   27   28   29   30   31   32   33   ...   203
    Bog'liq
    Linux This Book Includes 4 Manuscripts The Underground Bible

    Creating and Completing Streams
    Features Of Creating Streams
    Setting up streams is different, related primarily to the fact that the currents
    are created within an existing address space (or a particular kernel process).
    There are several situations that can be a new stream.
    If a process is created by a fork () system call, flow is automatically created
    after the distribution of the address space within that process (often the
    main application flow). You can create streams from the user code with an
    appropriate system call.
    Many operating systems have special threads that create the kernel of the
    system (the kernel code can also be executed in threads). When creating a
    stream, the system must follow these steps.
    1. Create data structures that reflect the flow in the OS
    2. Select city at the stack of flow
    3. Set the processor command counter to the beginning of the
    code to be executed in the thread
    this code is called a stream procedure  or function, and the  ng
    pointer is referred to as a stream call or system call .
    Note that when creating flows, as opposed to the creation process, there is
    no need to allocate memory for the new address space, so usually flows are


    created faster and with lesser resources.
    Features Completion Streams
    At the end of the stream, its resources are released (first of all, the
    folder); this operation is usually faster than completing the process. The
    flow may be completed when the control reaches the end of the flow
    procedure; there are also special system calls intended for early termination
    of flows.
    Like processes, threads can be executed synchronously and
    asynchronously. A thread that created another thread may pause its
    execution until it is completed. This expectation is called joining streams ( 
    thread joining). Upon completion of the attached thread, the thread that was
    waiting to complete it may receive execution status. When creating a stream
    or joining it, if the stream cannot connect, it is called disconnected or 
    detached. If the stream is not disconnected, it is called Pluggable , after
    which it is necessary to join them to stop memory leakage .

    Download 6,34 Mb.
    1   ...   26   27   28   29   30   31   32   33   ...   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