1 / 9

What Is An Operating System?

What Is An Operating System?. Before Operating Systems. What do you do with just computer hardware? If someone gives you a computer with no software whatsoever, how do you get it to do anything? You write a program that runs on the hardware I n the early days, that was the way it worked ...

winnett
Download Presentation

What Is An Operating System?

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. What Is An Operating System?

  2. Before Operating Systems • What do you do with just computer hardware? • If someone gives you a computer with no softwarewhatsoever, how do you get it to do anything? • You write a program that runs on the hardware • In the early days, that was the way it worked ... • You started with just the bare hardware • You wrote a program that did everything: • Including managing all aspects of the hardware • Including solving your particular problem • Your program was all the computer did!

  3. Without an Operating System • Each program runs directly on the hardware • Each program must do everything • Each program needs to know the details of the hardware and how to use it • If the hardware changes, the program must change as well • The hardware supports only one program at a time - each user must wait until the previous program is done to “share” the hardware with other users. • Writing programs is incredibly complex and expensive Program Hardware

  4. With an Operating System • Operating system runs directly on the hardware • Operating system is in charge of managing the hardware • Operating system hides the details of hardware from software - provides a much simpler interface for programs • If hardware changes, software does not - operating system must handle it • By carefully managing hardware resources, several programs can run at once • Software becomes much easier and cheaper to develop Program Operating System Hardware

  5. So, What Are the Benefits of an OS? • An operating system manages the computer • Programming is easier • Using a computer is easier - you no longer need to be an expert to use it • An operating system hides the hardware • Programs are portable • Programs are hardware-independent • An operating system facilitates resource sharing • Several users can run several programs at once • Saves time and money

  6. How Hardware Resources are Shared • Memory and disk space • programs use different regions • Printers (and other peripherals) • programs line up and wait • CPU • programs time share • time is split into slices, with eachprogram getting several slices Program A Program B Program B Program A B A A B C

  7. A B D OS C Time Sharing Explained • Different processes are run for some small amount of time in turns. • Each task believes that it has the whole machine to itself! • Slower than being by itself, but quick enough.

  8. A B D OS C Not Really That Slow In Reality Is the computershared?! The network isslow today ... This user is aslow typer! This file is takingforever to load! Use top to see thebusiest programs!

  9. Exercise • Use who to see how many users are using the system. • Use top to see the busiest processes. • press q to quit top • Use ps to see your own processes.

More Related