UNIX and Shell Programming

Slides:



Advertisements
Similar presentations
Interactive lesson about operating system
Advertisements

Operating Systems (CSCI2413) Lecture 2 Overview phones off (please)
Operating System Structures
SLC/Ver1.0/OS CONCEPTS/Oct'991INTRODUCTION What is an Operating System? Operating Structure -System Components -OS Services -System Calls & Programs -System.
3.1 Silberschatz, Galvin and Gagne ©2003 Operating System Concepts with Java Chapter 3: Operating-System Structures System Components Operating System.
COMP5102/5122 Lecture 1 Operating Systems (OS) Introduction phones off (please)
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 3: Operating-System Structures System Components Operating System Services.
Operating System and Computer Organization Background CS 502 Spring 99 WPI MetroWest/Southboro Campus.
1/26/2004CSCI 315 Operating Systems Design1 Operating System Structures Notice: The slides for this lecture have been largely based on those accompanying.
Cs238 Lecture 3 Operating System Structures Dr. Alan R. Davis.
Common System Components
Os31 Chapter 3 Operating-System Structures. os32 Outlines System Components Operating System Services System Calls System Programs System Structure Virtual.
Silberschatz, Galvin and Gagne  Operating System Concepts Common System Components Process Management Main Memory Management File Management.
CS4315A. Berrached:CMS:UHD1 Operating System Structures Chapter 3.
Chapter 3: Operating-System Structures System Components Operating System Services System Calls System Programs System Structure Virtual Machines System.
Abhinav Kamra Computer Science, Columbia University 3.1 Operating System Concepts Silberschatz, Galvin and Gagne  2002 Chapter 3: Operating-System Structures.
 Introduction Introduction  Definition of Operating System Definition of Operating System  Abstract View of OperatingSystem Abstract View of OperatingSystem.
Lecture By : Rupinder Kaur Lect. IT SRS Govt. Polytechnic college Ludhiana Topic : Overview of Operating System.
Prof. Hsien-Hsin Sean Lee
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 3: Operating-System Structures System Components Operating System Services.
Silberschatz, Galvin and Gagne  Applied Operating System Concepts Chapter 3: Operating-System Structures System Components OS Services System.
CHAPTER 2 OPERATING SYSTEM OVERVIEW 1. Operating System Operating System Definition A program that controls the execution of application programs and.
Module 1.1: Operating-System Structures
OPERATING SYSTEM OVERVIEW. Contents Basic hardware elements.
Introduction Operating Systems. No. 2 Contents Definition of an Operating System (OS) Role of an Operating System History of Operating Systems Classification.
Chapter 3: Operating-System Structures System Components Operating System Services System Calls System Programs System Structure Virtual Machines System.
UNIX and Shell Programming (06CS36)
SYSTEM SOFTWARE Prepared by: Mrs. Careene McCallum-Rodney.
3.1 Operating System Concepts Chapter 3: Operating-System Structures System Components Operating System Services System Calls System Programs System Structure.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 3: Operating-System Structures System Components Operating System Services.
Silberschatz and Galvin  Operating System Concepts Module 3: Operating-System Structures System Components Operating System Services System Calls.
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.
3.1 Silberschatz, Galvin and Gagne ©2003 Operating System Concepts with Java Chapter 3: Operating-System Structures System Components Operating System.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 3: Operating-System Structures System Components Operating System Services.
Silberschatz, Galvin, and Gagne  Applied Operating System Concepts Module 3: Operating-System Structures System Components Operating System Services.
3.1 Operating System Chapter 3: Operating-System Structures System Components Operating System Services System Calls System Programs System Structure Virtual.
Distributed System Concepts and Architectures 2.3 Services Fall 2011 Student: Fan Bai
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 3: Operating-System Structures System Components Operating System Services.
OS, , Part I Operating - System Structures Department of Computer Engineering, PSUWannarat Suntiamorntut.
1 CSE Department MAITSandeep Tayal Operating-System Structures System Components Operating System Services System Calls System Programs System Structure.
Operating System Principles And Multitasking
Distributed System Services Fall 2008 Siva Josyula
UNIX Unit 1- Architecture of Unix - By Pratima.
1 CS.217 Operating System By Ajarn..Sutapart Sappajak,METC,MSIT Chapter 3 Operating-System Structures Slide 1 Chapter 3 Operating-System Structures.
Operating Systems Introduction to Operating System (OS)
Silberschatz, Galvin, and Gagne  Applied Operating System Concepts Module 3: Operating-System Structures System Components Operating System Services.
Introduction to Operating System. 1.1 What is Operating System? An operating system is a program that manages the computer hardware. It also provides.
First lecture.  Lecture note  ELearning web site :  Abraham Silberschatz, Peter B. Galvin, Greg Gagne, “Operating.
First lecture.  Lecture note  ELearning web site :  Abraham Silberschatz, Peter B. Galvin, Greg Gagne, “Operating System.
23/06/ :54:20 CSC Alliance — 1 Kimera Richard Phone: INSTITUTE OF COMPUTER SCIENCE DEPARTMENT.
Cs506 First lecture. Materials Lecture note ELearning web site : Main text book : “Operating System Concepts”, 8 th edition,Auther:
System Components Operating System Services System Calls.
Operating System Structure Lecture: - Operating System Concepts Lecturer: - Pooja Sharma Computer Science Department, Punjabi University, Patiala.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 3: Operating-System Structures System Components Operating System Services.
Module 3: Operating-System Structures System Components Operating System Services System Calls System Programs System Structure Virtual Machines System.
Chapter 3: Operating-System Structures
Chapter 3: Operating-System Structures
Module 3: Operating-System Structures
Operating System Structure
Cs506 First lecture.
Chapter 1: Intro (excerpt)
What is an Operating System?
Chapter 3: Operating-System Structures
Chapter 1 Introduction to Operating System Part 5
Unit 1: Introduction to Operating System
Basic Concepts Protection: Security:
Chapter 2: Operating-System Structures
Introduction to Operating Systems
Introduction to Operating Systems
Chapter 2: Operating-System Structures
Presentation transcript:

UNIX and Shell Programming (10CS44) Unit 1 www.bookspar.com | Website for Students | VTU NOTES | QUESTION PAPERS

What is an Operating System (OS)? Functions of an OS Agenda What is an Operating System (OS)? Functions of an OS UNIX Operating System UNIX Architecture www.bookspar.com | Website for Students | VTU NOTES | QUESTION PAPERS

What is an Operating System? A program that acts as an intermediary between a user of a computer and the computer hardware. 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. www.bookspar.com | Website for Students | VTU NOTES | QUESTION PAPERS

Computer System Components 1. Hardware – provides basic computing resources (CPU, memory, I/O devices). 2. Operating system – controls and coordinates the use of the hardware among the various application programs for the various users. 3. Applications programs – define the ways in which the system resources are used to solve the computing problems of the users (compilers, database systems, video games, business programs). 4. Users (people, machines, other computers). www.bookspar.com | Website for Students | VTU NOTES | QUESTION PAPERS

Abstract View of System Components www.bookspar.com | Website for Students | VTU NOTES | QUESTION PAPERS

Operating System Definitions Resource allocator – manages and allocates resources. Control program – controls the execution of user programs and operations of I/O devices . Kernel – the one program running at all times (all else being application programs). www.bookspar.com | Website for Students | VTU NOTES | QUESTION PAPERS

Common Services of an OS Process Management Main Memory Management File Management Secondary Storage Management I/O Subsystem Management www.bookspar.com | Website for Students | VTU NOTES | QUESTION PAPERS

Process Management 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. 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 www.bookspar.com | Website for Students | VTU NOTES | QUESTION PAPERS

Main-Memory Management Memory is a large array of words or bytes, each with its own address. It is a repository of quickly accessible data shared by the CPU and I/O devices. Main memory is a volatile storage device. It loses its contents in the case of system failure. The operating system is responsible for the following activities in connections with memory management: Keep track of which parts of memory are currently being used and by whom. Decide which processes to load when memory space becomes available. Allocate and deallocate memory space as needed. www.bookspar.com | Website for Students | VTU NOTES | QUESTION PAPERS

File Management A file is a collection of related information defined by its creator. Commonly, files represent programs (both source and object forms) and data. The operating system is responsible for the following activities in connections with file management: File creation and deletion. Directory creation and deletion. Support of primitives for manipulating files and directories. Mapping files onto secondary storage. www.bookspar.com | Website for Students | VTU NOTES | QUESTION PAPERS

Secondary-Storage Management Since main memory (primary storage) is volatile and too small to accommodate all data and programs permanently, the computer system must provide secondary storage to back up main memory. Most modern computer systems use disks as the principle on-line storage medium, for both programs and data. The operating system is responsible for the following activities in connection with disk management: Free space management Storage allocation www.bookspar.com | Website for Students | VTU NOTES | QUESTION PAPERS

I/O Subsystem Management Keeping track of status of the I/O devices Deciding who gets the device, for how long and when Allocating a device to a process and deallocation www.bookspar.com | Website for Students | VTU NOTES | QUESTION PAPERS

The UNIX Operating System Simple and yet powerful A multiuser, multitasking, portable operating system Interaction with the system via a command interpreter – shell On the lighter side, UNIX is simple. But, you need to be a genius to understand its simplicity! www.bookspar.com | Website for Students | VTU NOTES | QUESTION PAPERS

UNIX Architecture Shell Kernel Hardware System Calls www.bookspar.com | Website for Students | VTU NOTES | QUESTION PAPERS

Division of Labor Kernel Shell in C Core of the OS – a collection of routines/system calls written in C Loaded into memory when the system is booted Communicates with the hardware directly Shell Interface between the user and the kernel Acts as the command interpreter Forms a simpler version of the command line and communicates with the kernel to see that command is executed www.bookspar.com | Website for Students | VTU NOTES | QUESTION PAPERS

End of session www.bookspar.com | Website for Students | VTU NOTES | QUESTION PAPERS