Operating system and system software Operating Systems



Download 0.94 Mb.
Page5/6
Date09.06.2018
Size0.94 Mb.
#54020
1   2   3   4   5   6

Boot loader: Program in ROM (example of firmware)

  • Run by the CPU when power is turned on

  • Transfers operating system from mass storage to main memory

  • Executes jump to operating system




    Boot Sequence



    Process (Application) Management



    • Process: The activity of executing a program

    • Process State: Current status of the activity

    • Scheduler: Adds new processes to the process table and removes completed processes from the process table

    • Dispatcher: Controls the allocation of time slices to the processes in the process table

      • The end of a time slice is signaled by an interrupt.




    Time-sharing between process A and process B



    Efficient Allocation Of Resources

    • The operating system ensures that

      • Multiple tasks of the computer can be underway at one time

      • Processor is constantly busy

        • Keeps a queue of programs that are ready to run

        • Whenever processor is idle, picks a job from the queue and assigns it to the processor

    • Semaphore: A “control flag”

    • Critical Region: A group of instructions that should be executed by only one process at a time

    • Mutual exclusion: Requirement for proper implementation of a critical region

    The Safe Use Of Resources



    • Deadlock

    • The operating system must handle deadlocks

      • Deadlock prevention

      • Deadlock recovery




    DeadLock



    System Security And Protection


  • 1   2   3   4   5   6




    The database is protected by copyright ©ininet.org 2024
    send message

        Main page