Lab1 Lab1 Operating Systems Basics Operating System CPIT 260 Instructor: Bashair Ali Alrashed.

Slides:



Advertisements
Similar presentations
COMPUTERS: TOOLS FOR AN INFORMATION AGE Chapter 3 Operating Systems.
Advertisements

OPERATING SYSTEM An operating system is a group of computer programs that coordinates all the activities among computer hardware devices. It is the first.
CMPT 300: Operating Systems I Dr. Mohamed Hefeeda
UNIX Chapter 01 Overview of Operating Systems Mr. Mohammad A. Smirat.
Operating Systems: Software in the Background
CMPTR1 CHAPTER 3 COMPUTER SOFTWARE Application Software – The programs/software/apps that we run to do things like word processing, web browsing, and games.
Introduction to windows operating system i
Xuan Guo Chapter 1 What is UNIX? Graham Glass and King Ables, UNIX for Programmers and Users, Third Edition, Pearson Prentice Hall, 2003 Original Notes.
Copyright 2003 The McGraw-Hill Companies, Inc CHAPTER System Software computing ESSENTIALS    
Operating Systems Concepts 1. A Computer Model An operating system has to deal with the fact that a computer is made up of a CPU, random access memory.
LECTURE 14 Operating Systems and Utility Programs
Chapter 8 Operating Systems and Utility Programs By: James Granahan.
OPERATING SYSTEMS AND SYSTEMS SOFTWARE. SYSTEMS SOFTWARE Systems software consists of the programs that control the operations of the computer and its.
CS101 Introduction to Computing Lecture 11 Operating Systems
An Introduction to Operating Systems. Definition  An Operating System, or OS, is low-level software that enables a user and higher-level application.
Unix Presentation. What is an Operating System An operating system (OS) is a program that allows you to interact with the computer -- all of the software.
The University of Akron Summit College Business Technology Department Computer Information Systems 2440: 145 Operating Systems Introduction to UNIX/Linux.
SOFTWARE.
Learning Outcomes At the end of this lesson, students should be able to: State the types of system software – Operating system – Utility system Describe.
Week 6 Operating Systems.
Lesson 4 Computer Software
Chapter 3.1:Operating Systems Concepts 1. A Computer Model An operating system has to deal with the fact that a computer is made up of a CPU, random access.
Hardware vs. Software Computer systems consist of both hardware and software. Hardware refers to anything you can physically touch. Keyboards, mice, monitors,
© Paradigm Publishing Inc. 4-1 Chapter 4 System Software.
Computer Concepts 2013 Chapter 4 Operating Systems and File Management.
Objectives To provide a grand tour of the major operating systems components To provide coverage of basic computer system organization.
Computer Software Zaffar Ahmed Shaikh.
Lesson 6 Operating Systems and Software
Component 4: Introduction to Information and Computer Science Unit 4: Application and System Software 1 Health IT Workforce Curriculum Version 1.0/Fall.
Chapter 4 System Software.
4 1 Operating System Activities  An operating system is a type of system software that acts as the master controller for all activities that take place.
Operating Systems.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3: Operating Systems Computer Science: An Overview Tenth Edition.
Computing Essentials 2014 System Software © 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized.
Computing and the Web Operating Systems. Overview n What is an Operating System n Booting the Computer n User Interfaces n Files and File Management n.
Chapter 8: Operating Systems and Utility Programs Catherine Gifford Dan Falgares.
INTRODUCTION SOFTWARE HARDWARE DIFFERENCE BETWEEN THE S/W AND H/W.
Systems Software Operating Systems. What is software? Software is the term that we use for all the programs and data that we use with a computer system.
OPERATING SYSTEMS UNIT – I R.SOUJANYA IT Dept. UNIT I Computer System and Operating System Overview Chapter 1: IntroductionIntroduction Overview of Computer.
Slide 3-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 3.
Operating System What is an Operating System? A program that acts as an intermediary between a user of a computer and the computer hardware. An operating.
Module 2 : Part 1 INTRODUCTION TO HARDWARE & SOFTWARE INTRODUCTION TO HARDWARE & SOFTWARE.
Practice Exercises Chapter one and three.
CMPF124 Basic Skills For Knowledge Workers Chapter 1 – Part 1 Introduction To Windows Operating Systems CMPF 112 : COMPUTING SKILLS.
UNIX and Shell Programming
Software By : Madam aisha. Hardware: The physical equipment in a computing environment such as the computer and its peripheral devices printers, speakers...
Copyright©2008 N.AlJaffan®KSU1 Chapter 7 Operating System and Utility Programs.
Module 2 Part I Introduction To Windows Operating Systems Intro & History Introduction To Windows Operating Systems Intro & History.
Application Software System Software.
Introduction to UNIX CS465. What is UNIX? (1) UNIX is an Operating System (OS). An operating system is a control program that allocates the computer's.
Computer and Programming. Computer Basics: Outline Hardware and Memory Programs Programming Languages and Compilers.
Chapter 1 Basic Concepts of Operating Systems Introduction Software A program is a sequence of instructions that enables the computer to carry.
What is O.S Introduction to an Operating System OS Done by: Hani Al-Mohair.
Computer Operating Systems And Software applications.
Von Neumann Machines. 3 The Von Neumann Architecture Model for designing and building computers, based on the following three characteristics: 1)The.
1 Lesson 8 Operating Systems Computer Literacy BASICS: A Comprehensive Guide to IC 3, 3 rd Edition Morrison / Wells.
OPERATING SYSTEMS DO YOU REQUIRE AN OPERATING SYSTEM IN YOUR SYSTEM?
Computer Software. Two Major Types of SW System SW Programs that generally perform the background tasks in a computer. These programs, many times, talk.
UNIX U.Y: 1435/1436 H Operating System Concept. What is an Operating System?  The operating system (OS) is the program which starts up when you turn.
Systems Software / The Operating System CSC October 14, 2010.
Introduction to Operating Systems Concepts
Operating System and Utility Programs
Operating System & Application Software
LINUX WINDOWS Vs..
Computer Software.
Where are being used the OS?
Introduction to Operating System (OS)
Chapter 2: System Structures
Copyright 2003 The McGraw-Hill Companies, Inc.
The Operating system Gives life to the hardware
Presentation transcript:

Lab1 Lab1 Operating Systems Basics Operating System CPIT 260 Instructor: Bashair Ali Alrashed

Objectives To understand the basics of operating system. To understand about device drivers. Introduction to different operating systems. To understand the role of an operating system. To understand the core tasks of operating system Defining program and a process

Operating System (OS) It is an interface between hardware and user, which is responsible for the management and coordination of activities and the sharing of the resources of a computer, that acts as a host for computing applications run on the machine.interfacehardwareusercomputing applications An operating system or OS, is a fundamental component of a computer system that manages activities and resources on the machine

Operating System (OS) The most well known OS include: System Software programs that manage the operation of a computer Application Software programs that help the user perform a particular task

System Software System Software are programs that Control the overall operation of the computer OS Interact directly with HW, device drivers, VGA driver, Driver Perform system management & maintenance, Norton Ghost, Ant viruses. Are used to develop or maintain other programs Language translators Interpreter or Compiler for high level languages

Operating System Performs its work invisibly to control the internal functions of a computer, e.g. maintaining files on the disk drive, managing the screen, controlling which tasks the CPU performs and in what order It interacts directly with the computer HW Other SW normally does not directly interact with the HW, but through the OS

Firmware (Boot up) OS components that are stored permanently on chip (ROM) and not on the disk drive because its non-volatile storage and capable of holding large quantities of data permanently. When a computer is powered-on, firmware is the first program that it always executes Firmware consists of startup and a few low-level I/O routines that assist the computer in finding out and executing the rest of the OS On IBM-compatible PC’s, it is called BIOS Location of Operating System

The Role of an OS The 1st program that runs when a typical computer is turned ON, and the last one to finish running when the computer is turned OFF It manages the HW and SW resources of the computer system, often invisibly. These include the processor, memory, disk drives, etc. It provides a simple, consistent way for applications to interact with the HW without having to know all the details of the HW Open source describes practices in production and development that promote access to the end product's source materials

OS Parts The operating system comprises a set of software packages that can be used to manage interactions with the hardware. The following elements are generally included in this set of software: The kernel, is a bridge between applications and the actual data processing done at the hardware level. it’s represents the operating system's basic functions its responsibilities include managing the system's resources (the communication between hardware and software components) The shell, allowing communication with the operating system via a control language, letting the user control the peripherals without knowing the characteristics of the hardware used, management of physical addresses, etc. example: c> format a: The file system, allowing files to be recorded in a tree structure.

Examples of Operating Systems Windows Linux Unix Mac OS Solaris DOS

Microsoft Operating Systems Windows 9x Windows 95, Windows 98, Windows Millennium Edition, OS/2 (developed jointly with IBM) Windows NT Windows NT 3.1 (OS/2 3.0), Windows NT 3.5 (Windows 3.5), Windows NT 3.51 (Windows 3.51), Windows NT 4.0 (Windows 4), Windows 2000 (Windows NT 5.0 Windows XP +Windows NT 5.1 Windows Server 2003 Windows 7 (Windows 6.1) Windows CE (OS for handhelds, embedded devices, and real similar to other versions of Windows) Windows CE 3.0, CE 5.0, CE 6.0, Windows mobile

Linux and Unix UNIX: A popular multi-user, multitasking operating system developed at Bell Labs in the early 1970s. After Unix System V, it ceased to be developed as a single operating system, and was instead developed by various competing companies, such as Solaris (from Sun Microsystems), AIX (from IBM), HP-UX (from Hewlett-Packard), and IRIX (from Silicon Graphics). UNIX is a specification for baseline interoperability between these systems, even though there are many major architectural differences between them. LINUX: Linux is a UNIX-like operating system that was designed to provide personal computer users a free or very low-cost operating system comparable to traditional and usually more expensive UNIX systems. Linux has never been certified as being a version of UNIX, A comprehensive list of differences between Linux and "UNIX" isn't possible, because there are several completely different "UNIX" systems.

Linux and UNIX Pardus Linux-based operating system developed by the Turkey Scientific and Technical Research Association. You can use it both in Turkish and English. Peanut Linux Small but packed and nice looking Linux distribution, only 210 Mb download installs to 600 Mb on your hard disk. Puppy Linux Small Linux distribution, only 60mb in size. Can boot from CD, USB disk and run inside Windows or standalone. RedHat Non-free Linux editions for server computers, sold by annual subscription. Other Linux Flavors’ Mandriva, Suse, Ubuntu, Fedora,Tiny linux, xandros, United Linux etc.

Other Operating Systems Apple: Macontosh INTEL BASED : OS/2 Java Operating System: jnode

Program vs. Process ProgramProcess Set of instructionProcess is active. It is staticIt is program in execution The contents are stored on the Hard Disk Every process occurs at a different memory location

Process vs. Thread ProcessThread requires careful programmingeasier to create processes don't share the same address space don't require a separate address space It is program in executionUnit of execution consist of multiple threads.It is a sub process During the Context Switching between the processes the cache gets invalidated where as in the context switching of the threads the cache does not invalidate. independentinterdependent

Process vs. Thread

Fork (System Call)  For a process to start the execution of a different program  need a way to create new processes  We need process call forks, it creates a copy of itself.processcopy  Fork is come from Unix OS is created with the fork() it type of system call system call  Usually a system call, implemented in the kernel.system callkernel  The original process that calls fork() is the parent process, and the newly created process is the child process.parent processchild process  Creates a separate address space for the child.address space  The child process has an exact copy of all the memory segments of the parent process.Both the parent and child processes possess the same code segments, but execute independently of each other.  Both processes return from the system call and execute the next instruction

Usage The system call takes no arguments. Like fork() If it returns a negative value, the creation of a child process was not successful. Otherwise, in the child process, the return value of fork() is zero, whereas the return value in the parent process is the process identifier of the newly created child process (a positive value).process identifier Since both processes continue executing the same program, they typically distinguish the parent from the child by testing the return value of fork().

#include int main() { pid_t pid; /* fork a child process */ pid = fork(); if (pid < 0) { /* error occurred */ fprintf(stderr, "Fork Failed\n"); exit(-1); } else if (pid == 0) { /* child process */ printf("I am the child %d\n",pid); execlp("/bin/ls","ls",NULL); } else { /* parent process */ /* parent will wait for the child to complete */ printf("I am the parent %d\n",pid); wait(NULL); printf("Child Complete\n"); exit(0); }

The main purpose of OS To provide an environment for a computer user to execute programs on computer hardware in a convenient and efficient manner. To allocate the separate resources of the computer as needed to solve the problem given. The allocation process should be as fair and efficient as possible. As a control program it serves two major functions: supervision of the execution of user programs to prevent errors and improper use of the computer, management of the operation and control of I/O devices.