Operating system organization (week 2) Flashcards
what does an operating system provide
provides an environment for the safe and secure execution of application programs while doing it in an efficient and fast manner.
operating systems are organized along 2 different lines which are ?
–> those that provide convenience for the user/program
–> those that ensure efficient operations of the system
what are the 6 services that provide convenience for user/program
–> user interface (Batch interface, CLI, GUI)
–> program execution (load, run & terminate the program)
–> Input/Output operation (file, cd/DVD, smartcard)
–> File system manipulation (create, read, write files and permission management)
–> Communications (Local/remote inter-process communication)
–> Error detection (able to detect error and take proper action)
what are the 3 services that provide
–> Resource allocation
–> Accounting
–> Protection and security
what is resource allocation
–> Resources to be allocated among multiple users fairly
–> Different algorithms are used to properly allocate different resources
what is accounting
–> Keep track of usage statistics eg CPU, Printer, Harddisk quota
–> Reconfigure system to improve computing services
what is protection and security
–> security of the system from outsiders
–> ensures that access to all system resources is controlled
–> audit trail must also exist so that people can find out what happened
what are the 4 core functions of the OS
–> device management
–> process, thread, and resource management
–> memory management
–> file management
Based on the four functions (device management, process, thread and resource management, memory management, and memory management ), the modern OS
implements________, which provides
__________ to the respective resource that they
manage.
4 major managers
abstractions
there is ___________ interaction between the 4 major managemers
close
what is device management?
–> it refers to the way the generic devices are handled
–> special management approaches for processor and memory
–> partitioning design simplifies adding and upgrading devices
what is process, thread and resource management
–> creates abstractions of processes, threads, and resources.
–> allocates processor resources equitably
–> allocates and tracks abstract resources such as queues, semaphores, and messages.
–> cooperates with the memory manager to administer the primary memory
what is memory management
–> administer and allocate primary memory
–> enforces resource isolation
–> enables sharing between processes
–> provides virtual memory extensions (abstract machine’s memory appears larger than physical memory)
what is memory management?
–> administer and allocate primary memory
–> enforces resource isolation
–> enables sharing between processes
–> provides virtual memory extensions (abstract machine’s memory appears larger than physical memory)
what is file management
–> creates abstractions of storage devices
–> range from byte stream files to indexed records
–> file system should also allow users to access local and remote files over the internet
how does OS manage resource sharing
–> time/space multiplex sharing (use this where appropriate)
–> Exclusive use of a resource (Allow processes to use a resource exclusively as required.)
–> Isolation (Allow a resource to save information without fear of it being modified or tampered with.)
–> managed sharing (sharing must be done in an orderly fashion according to the properties of the resource)
what are the 3 mechanisms to address isolation and sharing
–> processor modes
–> kernels
–> method of invoking system service
what are processor modes
–> processor modes help to distinguish between trusted and untrusted software
–> Determine execution capability and accessible
memory areas
what are 2 modes that modern processors provide
supervisor mode
user mode
what is supervisor mode (for OS)
–> it can execute all machine instructions
–> can reference all memory locations
what is user mode (for user programs)
–> can execute a subset of instructions
–> Can only reference a subset of memory locations