





















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






















A program that acts as an intermediary between a user of a computer and the computer hardware.
(^) Hides the messy details which must be performed (^) Presents user with a virtual machine, easier to use
(^) Each program gets time with the resource (^) Each program gets space on the resource
(^) Convenience – Top Down View – Virtual Machine (^) Extending the real hardware and acting as a Virtual Machine (^) Hiding the truth about the hardware from the user (^) Providing the user a convenient interface which is easier to program (^) Efficiency – Bottom Up View – Resource Manager (^) Providing an orderly and controlled allocation of resources (^) Improving resource utilization (^) Ability to Evolve (^) Permit effective development, testing, and introduction of new system functions without interfering with existing services (^) Protection (^) allow only authorised access to data, computation, services, etc.
(^) A process is a program in execution. A process needs certain resources, including CPU time, memory, files, and I/O devices, to accomplish its task. (^) Process is active entity, while program is passive entity (^) The operating system is responsible for the following activities in connection with process management. (^) Process creation and deletion. (^) process suspension and resumption. (^) Provision of mechanisms for: (^) process synchronization (^) process communication
(^) D) Secondary-Storage Management (^) The operating system is responsible for the following activities in connection with disk management: (^) Free space management (^) Storage allocation (^) Disk scheduling (^) E) I/O Management (^) since user programs cannot execute I/O operations directly, the operating system must provide some means to perform I/O. (^) F) Protection System (^) Protection refers to a mechanism for controlling access by programs, processes, or users to both system and user resources. (^) The protection mechanism must: (^) distinguish between authorized and unauthorized usage. (^) specify the controls to be imposed. (^) provide a means of enforcement.
(^) Mode of operation: (^) User mode: when the computer system is executing on behalf of a user application. (^) Kernel/privileged: OS gains control of the computer. (^) At system boot time, the hardware starts in kernel mode. The operating system is then loaded and starts user applications in user mode. (^) Dual mode provides protection. How? (^) The hardware allows privileged instructions- instructions that causes harm (E.g. instruction to switch to kernel mode, I/O control, timer management) to be executed only in kernel mode.
(^) System calls mostly accessed by programs via a high-level Application Programming Interface (API) rather than direct system call use (^) Three most common APIs available to application programmers are: (^) Windows API for Windows, (^) POSIX API(for UNIX, Linux, and Mac OS X), and (^) Java API for the Java virtual machine (^) API – System Call – OS Relationship
(^) General-purpose OS is very large program, therefore need to be structured well. (^) Partition the task into small components, or modules. (^) Various ways: (^) Simple structure (monolithic) (^) Layered (^) Microkernel (^) Module (^) Hybrid