• Creating Processes Basic principles of process creation
  • Interactive And Background Processes
  • Creating and Completing Processes and Threads




    Download 6,34 Mb.
    Pdf ko'rish
    bet27/203
    Sana10.01.2024
    Hajmi6,34 Mb.
    #134102
    1   ...   23   24   25   26   27   28   29   30   ...   203
    Bog'liq
    Linux This Book Includes 4 Manuscripts The Underground Bible

    Creating and Completing Processes and Threads
    The process creation and termination tools allow you to dynamically
    change the set of applications that are running on the operating
    system. Thread creation and completion tools are the basis for creating
    multithreaded applications.
    Creating Processes
    Basic principles of process creation
    Processes can be created by the kernel of the system during its
    initialization. For example, in UNIX- compatible systems, such a process
    can be the process of initialization of the in-it system, in Windows XP - the
    processes of subsystems ( Win 32 or POSIX ). This creation process,
    however, is the exception, not the PR and the fork.
    Most often, processes are created when performing other processes. In this
    case, a process that creates another process is called an ancestor and the
    process created by it is called a descendant. New processes can be created
    while the application is running according to its logic (the compiler can
    create processes for each compilation step, the web server can handle the


    incoming requests), or directly at the request of the user (for example, from
    a command interpreter, graphical shell, or file manager).
    Interactive And Background Processes
    There are two types of background processes in terms of their interaction
    with the user.
    ❖ 
    Interactive processes  interact with users directly, receiving input
    from the keyboard, mouse, and more. An example of an interactive
    process is the process of a text editor or an integrated development
    environment
    ❖ 
    Background processes  do not interact with the user directly. They
    are usually started at system startup and are waiting for requests from
    other applications. Some of them (system processes) support the
    functioning of the system ( implement background printing,
    networking tools, etc.), others exclude specialized tasks (implement
    web servers, database servers, etc.). Background processes are also
    called services (services, in Windows XP systems ) or demo about us
    (daemons, on UNIX)

    Download 6,34 Mb.
    1   ...   23   24   25   26   27   28   29   30   ...   203




    Download 6,34 Mb.
    Pdf ko'rish

    Bosh sahifa
    Aloqalar

        Bosh sahifa



    Creating and Completing Processes and Threads

    Download 6,34 Mb.
    Pdf ko'rish