Chapter 1 introduction to OS.ppt
Document Details
Uploaded by Deleted User
Tags
Full Transcript
Chapter 1: Introduction What is an Operating System? What is an Operating system? A program that acts as an intermediary between a user of a computer and the computer hardware. Resource allocator Control Program Operating system goals: Ex...
Chapter 1: Introduction What is an Operating System? What is an Operating system? A program that acts as an intermediary between a user of a computer and the computer hardware. Resource allocator Control Program Operating system goals: Execute user programs and make solving user problems easier Make the computer system convenient to use Use the computer hardware in an efficient manner An operating system is the one program that is running at all the times on the computer- usually called the kernel.(System programs and application programs) Computer System Structure Computer system can be divided into four components Hardware – provides basic computing resources CPU, memory, I/O devices Operating system Controls and coordinates use of hardware among various applications and users Application programs – define the ways in which the system resources are used to solve the computing problems of the users Word processors, compilers, web browsers, database systems, video games Users People, machines, other computers Four Components of a Computer System Operating System Definition To understand more fully the OS role, we explore OS from 2 view points.: User view: In single user, it should be easy to use. System View: OS is a resource allocator Manages all resources Decides between conflicting requests for efficient and fair resource use OS is a control program Controls execution of programs to prevent errors and improper use of the computer Operating-System Operations Dual-mode operation allows OS to protect itself and other system components User mode and kernel mode Mode bit provided by hardware Provides ability to distinguish when system is running user code or kernel code Some instructions designated as privileged, only executable in kernel mode System call changes mode to kernel, return from call resets it to user Transition from User to Kernel Mode Computer System Organization Computer-system operation One or more CPUs, device controllers connect through common bus providing access to shared memory Concurrent execution of CPUs and devices competing for memory cycles TYPES OF OS: Batch Systems Multiprogrammed OS Multiprogrammed OS needed for efficiency Single user cannot keep CPU and I/O devices busy at all times Multiprogramming organizes jobs (code and data) so CPU always has one to execute A subset of total jobs in system is kept in memory One job selected and run via job scheduling When it has to wait (for I/O for example), OS switches to another job Time Sharing Systems Timesharing OS Timesharing (multitasking) is logical extension in which CPU switches jobs so frequently that users can interact with each job while it is running, creating interactive computing Each user has at least one program executing in memory process If several jobs ready to run at the same time CPU scheduling If processes don’t fit in memory, swapping moves them in and out to run Virtual memory allows execution of processes not completely in memory Multiprocessing OS Multiprocessing OS Most systems to date are single-processor systems; that is, they have only one main CPU. However, multiprocessor systems (also known as parallel systems ) are growing in importance. Such systems have more than one processor in close communication, sharing the computer bus, the clock, and sometimes memory and peripheral devices. Multiprocessor systems have three main advantages: Increased throughput. Economy of scale. Increased reliability. Distributed Systems A network, in the simplest terms, is a communication path between two or more systems. Distributed systems depend on networking for their functionality. By being able to communicate, distributed systems are able to share computational tasks, and provide a rich set of features to users. CLIENT SERVER SYSTEMS PEER TO PEER SYSTEMS Embedded systems: Embedded computers are most prevalent form of computers in existence. these are found everywhere ex: robots, microwave oven. Now a days entire house can be made computerized. Used in alarm systems, coffee makers, CCTV cameras etc. They tend to have specific tasks. OS has limited features. have little user interface. these systems run Real time OS. Rigid time constraints. Processing must be done within that time constraint. Used as a control device for a specific application. Handheld systems: Include PDAs(Personal digital assistants). Such as palm and pocket PCs, cell phones. More challenging. Limited size, weight. Small memory, slow processor, small display screens. Only a small subset of web page is displayed on the handheld device. Known as web clipping 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. Operating System Concepts