Operating System basic terms definition
Process state
New = process is being created
Running = instructions are being executed
Waiting = process is waiting for some event to occur
Ready = process is waiting to be assigned to a processor
Terminated = process has finished execution
Context switch
- when cpu switch to another process, system must save the state of the old process & load the saved state for new process
- context switch time is overhead, the system does no useful work while switching
- time dependent on hardware support
Batch processing ( jobs )
- one jobs is executed at a time
- programs is a job are executed sequentially
- Programs are collected together in a batch before processing starts.
- Each piece of work for a batch processing sys is called a job.
- Jobs are stored in job queues until computer is ready to process them.
Real-time ( processes )
- OS interleaves execution of processes in an application program to meet it's deadline
- Used when there are rigid time require on the operation of a processor.
- Use as a control device in a dedicated sys. (medical imaging)
Operating System
- program that acts as an intermediary between a user of a computer & the computer hardware
OS tasks
- maintain list of authorized users
- construct a list of all resources in the system
- initiate execution of programs
- perform scheduling
- maintain information for protection
- handle requests made by users & their programs
Virtual memory
- separation of user logical memory from physical memory
- allow add spaces to be shared by several processes
- allow for more efficient process creation
- can be implemented via:-
- demand paging
- demand segmentation
- demand paging
Paging
- logical address space of a process can be noncontiguous
- process is allocated physical memory whenever the latter is available
- process is allocated physical memory whenever the latter is available
- divide physical memory into fixed-sized blocks called FRAMES (size is power of 2, between 512 byte & 8192 byte)
- divide logical memory into blocks of a same sized called PAGES
- internal fragmentation
CPU scheduling
Preemptive | Non-preemptive |
|
|
|
|

No comments:
Post a Comment