Académique Documents
Professionnel Documents
Culture Documents
O.S.@K.I.T
3/17/2012
O.S.@K.I.T
3/17/2012
What is an OS?
Abstract views
To a college student: SW that permits access to the Internet To a programmer: SW that makes it possible to develop programs on a computer system To a user of an application package: SW that makes it possible to use the package To a technician in a computerized chemical plant: invisible component of a computer system that controls the plant
O.S.@K.I.T
3/17/2012
OS is a collection of routines that facilitates execution of user programs and use of resources
O.S.@K.I.T 3/17/2012
O.S.@K.I.T
3/17/2012
O.S.@K.I.T
3/17/2012
When these goals conflict, designer makes a trade-off for Notion of effective utilization
Each OS provides a different flavor of effectiveness Efficient use User convenience
O.S.@K.I.T
3/17/2012
OS ensures efficient use of memory, CPU, and I/O devices OS itself consumes CPU and memory resources, which constitutes overhead
It reduces resources for user programs
Poor efficiency can result if a program does not use a resource allocated to it
OS can monitor use of resources to ensure efficiency OS uses policies that ensure efficiency
It would increase the overhead
O.S.@K.I.T
3/17/2012
O.S.@K.I.T
3/17/2012
O.S.@K.I.T
3/17/2012
Concern
OS responsibility
Programs
Initiation and termination of programs. Providing convenient methods so that several programs can work towards a common goal.
Ensuring availability of resources in the system and allocating them to programs. Deciding when and for how long, to devote the CPU to a program. Protect data and programs against interference from other users and their programs.
O.S.@K.I.T 3/17/2012
O.S.@K.I.T
3/17/2012
O.S.@K.I.T
3/17/2012
O.S.@K.I.T
3/17/2012
Resource partitioning OS decides a priori what resources to allocate to each user program; divides system resources into partitions
A resource partition is a collection of resources
Pool-based
Resource table contains entries for partitions Simple to implement, but lacks flexibility OS allocates resources from a pool of resources
Consults table and allocates the resource if it is free
Less overhead of allocating and deallocating resources Achieves more efficient use of resources
O.S.@K.I.T
3/17/2012
Abstract view of a resource taken by a program Supported by OS through use of a real resource Same real resource may support several virtual ones Started with the use of virtual devices
E.g., a print server
Provides effect of having more resources Most OSs provide virtual memory Some OSs create virtual machines
O.S.@K.I.T
3/17/2012
O.S.@K.I.T
3/17/2012
O.S.@K.I.T
3/17/2012