Lecture 5: Operating Systems
Document Details
Uploaded by ImpressedActionPainting
Mehran University of Engineering and Technology
Tags
Summary
This lecture provides an overview of operating systems, covering their functionality, components, and various types. It details how operating systems manage resources and applications. Key concepts such as processor management, memory management, and device management are discussed.
Full Transcript
Lecture 5 Operating Systems y ’ s a d ure o T ec t l n e u tli ing t e O era t u r f Op i...
Lecture 5 Operating Systems y ’ s a d ure o T ec t l n e u tli ing t e O era t u r f Op i n g Le c l i ty o e rat on a O p c t i S ) o n. u n (O mm 1 F e m C o y s t o f S e y es. u r v s en c 2 S e m efe r y s t R S u r e. e c t 3 L The Role of An OS User/ programmer convenience: simple, consistent way for applications to interact with the hardware. Greater resource utilization: manages the hardware and software resources of the computer system, often invisibly. Benefit for application developers Don’t have to manage hardware complexity: Application developers can design software for an OS and it will run on all machines that support that OS. The OS hides and manages the hardware complexity and provide an Application Programmer Interface (API). OS Components Device Manager File Manager Loader Kernel Command Interpreter (Shell) GUI Kernel The heart of the OS Responsible for all the essential operations like managing resources, task scheduling, etc. Also contains low-level HW interfaces. Size important, as it is memory-resident Core Tasks of an OS 1. Processor management 2. Memory management 3. Device management 4. Storage management 5. Application Interface 6. User Interface Processor Management Various programs compete for the attention of the microprocessor. The OS plays the role of the honest referee, making sure that each application gets the necessary attention required for its proper execution. It tries to optimally manages the limited processing capacity of the microprocessor to the greatest good of all the users & apps Memory Management Straight forward for a single-user, single tasking The OS ensures that: – each application has enough private memory – applications do not run into other application’s private memory. The OS is responsible for efficient utilization of hierarchical system memory (e.g. RAM, cache, etc.). Storage Management A file system is a collection of directories, subdirectories, and files organized in a logical order The OS is responsible for maintaining the file system through indexing of filenames and their disk location. The OS can find any file in a logical and timely fashion Device Management Applications talk to devices through the OS and OS talks to and manages devices through device drivers Example: When we print to a laser printer, we do not need to know its details. All we do is to tell the printer device driver about what needs to be printed and it takes care of the details Application Interface Application developers do not need to know much about the hardware The OS provides all applications with a straight- forward and consistent interface to hardware Example: An application uses the OS to store data on the disk drive without knowing exact physical characteristics of the disk. User Interface Users communicate with the computer using a consistent user interface provided by the OS This UI can be a command-line interface in which a user types in the commands. Example: copy a:/file1.html c:/file1.html Or, it can be a graphical UI, where Windows, Icons, Menus, and a Pointing device (such as a mouse) is used to receive and display information. Example: With the help of the mouse, drag file1.html from drive a to drive c Types of Operating Systems Classification according to type of computers and applications they support 1. Real-Time Operating System (RTOS) 2. Single-User, Single Task 3. Single-User, Multi-Tasking 4. Multi-User RTOS Used to run computers embedded in machinery, robots, scientific instruments and industrial systems An important part of an RTOS is managing the resources of the computer so that a particular operation executes in precisely the same amount of time every time it occurs Examples: QNX, Real-time Linux Single-User, Single Task OS designed to manage the computer so that one user can effectively do one thing at a time Example: MS-DOS is an example single- tasking single-user OS with a command line interface. Single-User, Multi-Tasking Most popular OS Used by most of PCs and Laptops Lets a single user interact with several programs, simultaneously Examples: Windows, Mac OS, Linux Multi-User A multi-user OS allows many users to take advantage of the computer's resources, simultaneously Examples: Linux, Unix, Windows Terminal Server Survey of common Operating Systems 1. PCs for2. Embedded Systems Personal Computer (PC) Operating Systems 1.Microsoft OS 2.Unix or Unix-like OS 3.Other OS 1 Microsoft Operating System Disk Operating System (DOS) 2 UNIX or UNIX-like Operating System Linux Other 3 Operating Systems Embedded Operating Systems Microsoft CE Android Other Embedded OS Pocket PC Palm OS OS Symbian OS OS Survey Summary e’ u r c t L e s ary m m s t o S u : S at i o n f O c l e o p l i r o a p r e a ry y fo r w a i m wa a r d , r p nt e h S W p l e e Th i s t e i t h t h W / 1 ) s i m s e H con ract w utiliz e s n t e t l y a g ) o i ie sn a n & 2 t c m effi urce sks: s o t a r e re O S. ur t f e a c a n i sor tpe) M es o y r ecroi 1 n m r o c ) e m uosf ) W p c e s , 2 m a g h e e , h e3 H v i r t t e’ ru c t L e s nce fe re s Re s st eee k m sy w ihn i g s o rk rra t t tw o pfeo d N e i n g a n “Us P C ’ ’ d o f aney rv “Su k S e e O ’ ’ s t ic w s s nb ea x t io n i nrg c a or f k o un i ?? s / o n ? s t i s ? u e o n Q fusi C o n