Operating System Basics

Slides:



Advertisements
Similar presentations
Basic Unix system administration
Advertisements

Genesis: from raw hardware to processes System booting sequence: how does a machine come into life.
EEE 435 Principles of Operating Systems Operating System Concepts (Modern Operating Systems 1.5)
Chap 2 System Structures.
Operating-System Structures
1 Pertemuan 24 Sistem Operasi Unix Matakuliah: T0316/sistem Operasi Tahun: 2005 Versi/Revisi: 5.
1 Case Study 1: UNIX and LINUX Chapter History of unix 10.2 Overview of unix 10.3 Processes in unix 10.4 Memory management in unix 10.5 Input/output.
Operating Systems. What is an Operating System? A layer of software between users/applications and the hardware. The first program loaded onto a computer.
Process Management. External View of the OS Hardware fork() CreateProcess() CreateThread() close() CloseHandle() sleep() semctl() signal() SetWaitableTimer()
Operating Systems - Introduction S H Srinivasan
MEMORY MANAGEMENT By KUNAL KADAKIA RISHIT SHAH. Memory Memory is a large array of words or bytes, each with its own address. It is a repository of quickly.
Processes & Daemons Chapter IV / Part III. Commands Internal commands: alias, cd, echo, pwd, time External commands, code is in a file: grep, ls, more.
CS4315A. Berrached:CMS:UHD1 Operating System Structures Chapter 3.
Slide 6-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 6.
LINUX System : Lecture 2 OS and UNIX summary Bong-Soo Sohn Assistant Professor School of Computer Science and Engineering Chung-Ang University Acknowledgement.
Chapter 2: Operating-System Structures. 2.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 2: Operating-System Structures Operating.
Recall: Three I/O Methods Synchronous: Wait for I/O operation to complete. Asynchronous: Post I/O request and switch to other work. DMA (Direct Memory.
Processes and Threads CS550 Operating Systems. Processes and Threads These exist only at execution time They have fast state changes -> in memory and.
Hardware process When the computer is powered up, it begins to execute fetch-execute cycle for the program that is stored in memory at the boot strap entry.
E X C E E D I N G E X P E C T A T I O N S OP SYS Linux System Administration Dr. Hoganson Kennesaw State University Operating Systems Functions of an operating.
Ihr Logo Operating Systems Internals & Design Principles Fifth Edition William Stallings Chapter 2 (Part II) Operating System Overview.
Scis.regis.edu ● CS 468: Advanced UNIX Class 4 Dr. Jesús Borrego Regis University 1.
EMT 2390L Lecture 5 Dr. Reyes Reference: The Linux Command Line, W.E. Shotts.
Just Enough Unix, Chapter 1
CSE 5343/7343UNIX Case Study1 CSE 5343/7343 Fall 2006 Case Studies UNIX History/Processes.
We will focus on operating system concepts What does it do? How is it implemented? Apply to Windows, Linux, Unix, Solaris, Mac OS X. Will discuss differences.
CSC414 “Introduction to UNIX/ Linux” Lecture 2. Schedule 1. Introduction to Unix/ Linux 2. Kernel Structure and Device Drivers. 3. System and Storage.
Hardware process When the computer is powered up, it begins to execute fetch-execute cycle for the program that is stored in memory at the boot strap entry.
Introduction to UNIX CS 2204 Class meeting 1 *Notes by Doug Bowman and other members of the CS faculty at Virginia Tech. Copyright
Basic UNIX system administration CS 2204 Class meeting 14 *Notes by Doug Bowman and other members of the CS faculty at Virginia Tech. Copyright
CSCI/CMPE 4334 Operating Systems Review: Exam 1 1.
1 Chapter 2: Operating-System Structures Services Interface provided to users & programmers –System calls (programmer access) –User level access to system.
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.
UDel CISC361 Study Operating System principles - processes, threads - scheduling - mutual exclusion - synchronization - deadlocks - memory management -
Chapter 2 Operating System Overview Dave Bremer Otago Polytechnic, N.Z. ©2008, Prentice Hall Operating Systems: Internals and Design Principles, 6/E William.
Introduction to Operating Systems Concepts
Input/Output (I/O) Important OS function – control I/O
Chapter 4: Threads Modified by Dr. Neerja Mhaskar for CS 3SH3.
Chapter Objectives In this chapter, you will learn:
Case Study 1: UNIX and LINUX
Protection of System Resources
CASE STUDY 1: Linux and Android
Chapter 2: System Structures
Chapter 4 – Introduction to Operating System Concepts
Chapter 4: Multithreaded Programming
Operating Systems: A Modern Perspective, Chapter 6
Structure of Unix OS.
KERNEL ARCHITECTURE.
Lecture 45 Syed Mansoor Sarwar
Chapter 4: Threads.
OS Virtualization.
Chapter 4: Threads.
Chapter 4: Threads.
Chapter 4: Threads.
Chapter 2: Operating-System Structures
Chapter 2: System Structures
Modified by H. Schulzrinne 02/15/10 Chapter 4: Threads.
CHAPTER 8 ( , ) John Carelli, Instructor Kutztown University
Mid Term review CSC345.
CHAPTER 4:THreads Bashair Al-harthi OPERATING SYSTEM
LINUX System : Lecture 7 Lecture notes acknowledgement : The design of UNIX Operating System.
Linux and TCP/IP Networking
Chapter 2: Operating-System Structures
Implementing Processes, Threads, and Resources
Chapter 2 Operating System Overview
Implementing Processes, Threads, and Resources
Chapter 2: Operating-System Structures
Operating System By Prakash G Asnani
In Today’s Class.. General Kernel Responsibilities Kernel Organization
Presentation transcript:

Operating System Basics What does an Operating System do? - A way to execute programs (user/computer interface) - Allocates resources to programs efficiently and fairly - Manages resources - memory, cpu, devices, file system - Schedules jobs - Provides security and protection from others

Operating System Basics Nutt: “... only the most skilled and experienced programmers are allowed to design and modify a computer's operating system.” Process – a program in execution - has an address space - process table, parent-child relationship The Shell

Operating System Overview Thread – a unit of work. Multithreading allows a process to be divided into a number of threads so multiple things can be done concurrently. Deadlocks - Memory Management – memories not big enough -> virtual memory I/O – Programmed, Intr driven, DMA Files, Security and more...

File management OS responsible for managing data on disks (programs, and data). Filesystems – a general way to store files File descriptors – a structure with info about open files File types – several types of files Big advancement: ZFS

Unix 1970 – Bell Labs version 7 – 1978 – ancestor to most modern UNIX systems BSD, SYSV, Linux, (Open)Solaris UNIX kernel – core of OS system calls – user hooks into kernel library calls – user land routines - eventually end up doing system calls

Unix Daemons – processes running (in the background) usually to perform some service. Example daemons – httpd, smtpd, sshd cron – clock daemon (start jobs at a time given in crontab) File permissions - ls, chmod - rwx, user, group, other

Unix development environment Editors – vi, emacs make compilers – cc, gcc debuggers – dbx, gdb IDE – sunstudio, eclipse Trace system calls: truss, strace Powerful tracing: Dtrace Homework: run 'truss ls'

Booting a Unix System Boot block boot loader (grub) start kernel start init (usually pid 1) start start-up scripts - flavors: BSD, SYSV, Solaris SMF - usually start services the system provides (many daemons)

Start up systems BSD rc scripts - shell scripts ran during boot - check filesystems and mount - start services and other things - many things in a few scripts SYSV init.d scripts - Have run levels (S, 0, 1, 2, 3..) - Scripts run when entering a run level - Have one script for each service

Solaris SMF Service Management Facility Introduced in Solaris 10 A big improvement over the past Services are defined commands: svcs, svcadm, svccfg Knows dependencies has milestones Will restart a daemon that dies XML files and scripts