CASE STUDY 1: Linux and Android

Slides:



Advertisements
Similar presentations
14 Macintosh OS X Internals. © 2005 Pearson Addison-Wesley. All rights reserved The Macintosh Platform 1984 – first affordable GUI Based on Motorola 32-bit.
Advertisements

Android architecture overview
Chap 2 System Structures.
1 UNIX 1 History of UNIX 2 Overview of UNIX 3 Processes in UNIX 4 Memory management in UNIX 5 The UNIX file system 6 Input/output in UNIX.
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.
Chapter 1 Introduction
2: OS Structures 1 Jerry Breecher OPERATING SYSTEMS STRUCTURES.
Operating Systems - Introduction S H Srinivasan
Linux Operating System
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition Chapter 2: Operating-System Structures Modified from the text book.
Slide 3-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 3 Operating System Organization.
ThreadsThreads operating systems. ThreadsThreads A Thread, or thread of execution, is the sequence of instructions being executed. A process may have.
@2011 Mihail L. Sichitiu1 Android Introduction Platform Overview.
Asst.Prof.Dr.Ahmet Ünveren SPRING Computer Engineering Department Asst.Prof.Dr.Ahmet Ünveren SPRING Computer Engineering Department.
Case study 2 Android – Mobile OS.
Operating Systems Sameer Mahajan. Overview Process management Interrupts Memory management File system Device drivers Networking (TCP/IP, UDP) Security.
Chapter 8 Windows Outline Programming Windows 2000 System structure Processes and threads in Windows 2000 Memory management The Windows 2000 file.
MODERN OPERATING SYSTEMS Third Edition ANDREW S. TANENBAUM Chapter 11 Case Study 2: Windows Vista Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall,
@2011 Mihail L. Sichitiu1 Android Introduction Platform Overview.
CSC 322 Operating Systems Concepts Lecture - 4: by Ahmed Mumtaz Mustehsan Special Thanks To: Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall,
ANDROID Presented By Mastan Vali.SK. © artesis 2008 | 2 1. Introduction 2. Platform 3. Software development 4. Advantages Main topics.
Threads, Thread management & Resource Management.
CASE STUDY 1: Linux and Android Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.
Introduction to Operating Systems Chapter 1. cs431 -cotter2 Lecture Objectives Understand the relationship between computing hardware, operating system,
Rensselaer Polytechnic Institute CSCI-4210 – Operating Systems David Goldschmidt, Ph.D.
Windows 2000 Course Summary Computing Department, Lancaster University, UK.
MODERN OPERATING SYSTEMS Third Edition ANDREW S. TANENBAUM Chapter 1 Introduction Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc.
4061 Session 29 (5/1). Today Review, Looking Ahead DRM Teaching/TAing evaluations.
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.
Slide 3-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 3.
30 October Agenda for Today Introduction and purpose of the course Introduction and purpose of the course Organization of a computer system Organization.
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.
UNIX Operating Systems and Kernels Presented By: Walter Haynes April 26, 2007.
MODERN OPERATING SYSTEMS Third Edition ANDREW S. TANENBAUM Chapter 10 Case Study 1: LINUX Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall,
UNIX Unit 1- Architecture of Unix - By Pratima.
A. Frank - P. Weisberg Operating Systems Structure of Operating Systems.
UNIX & Windows NT Name: Jing Bai ID: Date:8/28/00.
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.
Chapter 1 Introduction  What is an operating system  History of operating systems  The operating system zoo  Computer hardware review  Operating system.
What is a Process ? A program in execution.
By Adam Reimel. Outline Introduction Platform Architecture Future Conclusion.
1 Chapter 2: Operating-System Structures Services Interface provided to users & programmers –System calls (programmer access) –User level access to system.
Introduction to Operating Systems Concepts
Computer System Structures
Chapter 4 – Thread Concepts
MODERN OPERATING SYSTEMS Third Edition ANDREW S
Visit for more Learning Resources
Case Study 1: UNIX and LINUX
Chapter 4 – Thread Concepts
Thread Programming.
Process Realization In OS
System Calls Richard Newman University of Florida.
CMPE419 Mobile Application Development
OS Basics Module 1.2 Richard Newman University of Florida.
MODERN OPERATING SYSTEMS Third Edition ANDREW S
OS Concepts Module 1.4 Richard Newman University of Florida.
CS-3013 Operating Systems Hugh C. Lauer
Lecture Topics: 11/1 General Operating System Concepts Processes
Operating System Structure
Operating Systems Lecture 1.
Operating Systems: A Modern Perspective, Chapter 3
Android Introduction Platform Mihail L. Sichitiu.
Android Platform, Android App Basic Components
Outline Operating System Organization Operating System Examples
OPERATING SYSTEMS STRUCTURES
CMPE419 Mobile Application Development
Presentation transcript:

CASE STUDY 1: Linux and Android Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.

History of UNIX and Linux UNICS PDP-11 UNIX Portable UNIX Berkeley UNIX Standard UNIX MINIX Linux Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.

Linux Goals Simplicity, elegance, consistency Power and flexibility Lack of useless redundancy Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.

Linux Kernel Structure Structure of the Linux kernel Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.

The layers in a Linux system. Interfaces to Linux The layers in a Linux system. Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.

The Shell Command line interface Faster More powerful Easily extensible First word entered will be a program name Commands take arguments Wild card characters used Filters, pipes used Shell scripts Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.

Linux Utility Programs A few of the common Linux utility programs required by POSIX. Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.

Processes: Fundamental Concepts Process creation in Linux. Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.

Process Management System Calls in Linux Some system calls relating to processes. Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.

Implementation of Processes and Threads in Linux Process descriptors Scheduling parameters Memory image Signals Machine registers System call state File descriptor table Accounting Kernel stack Miscellaneous Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.

Implementation of Processes and Threads in Linux The steps in executing the command ls typed to the shell. Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.

Bits in the sharing flags bitmap. Threads in Linux Native POSIX Thread Library (NPTL) is a  software feature that enables the Linux kernel to efficiently run programs written to use POSIX Threads. New threads are created with the clone() system call. Bits in the sharing flags bitmap. Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.

Threads in Linux Linux does not distinguish between processes or threads Uses tasks to refer to a flow of control within a program.

Scheduling in Linux Three classes of threads for scheduling purposes: Real-time FIFO. Real-time round robin. Timesharing. Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.

Memory Management Fundamental Concepts (a) Process A’s virtual address space. (b) Physical memory. (c) Process B’s virtual address space. Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.

Memory Management Fundamental Concepts Two processes can share a mapped file. Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.

Implementation of I/O in Linux The Linux I/O system showing one file system in detail. Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.

The Linux Virtual File System File system abstractions supported by the VFS. Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.

Implementation of I/O in Linux Some of the file operations supported for typical character devices. Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.

Linux File System: Fundamental Concepts (1) Some important directories found in most Linux systems. Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.

I/O in Linux – Networking The uses of sockets for networking Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.

File System Calls in Linux Some system calls relating to files. Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.

File System Calls in Linux stat()  system call that returns file attributes about an inode.  The fields returned by the stat system call. Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.

File System Calls in Linux Some system calls relating to directories. Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.

NFS Architecture Figure 10-35. Examples of remote mounted file systems. Directories are shown as squares and files are shown as circles. Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.

The NFS layer structure NFS Implementation The NFS layer structure Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.

Linux Security Fundamental Concepts Some example file protection modes. Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.

Security System Calls in Linux Some system calls relating to security. Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.

Android Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.

Android – Design Goals Open-source platform for mobile devices Support 3rd party apps with robust, stable API 3rd party apps compete on level playing field Users need not deeply trust 3rd party apps Support mobile user interaction Manage app processes for users Encourage apps to interoperate, collaborate Full general-purpose OS Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.

Android Architecture Overview Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.

Dalvik Process virtual machine with just-in-time compilation .dex files (Dalvik executables) Translated from java bytecode Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.

Android process hierarchy. Android Architecture Android process hierarchy. Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.

Android Runtime (ART) Ahead-of-time (AOT) compilation Compiles into machine code at installation Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.

Application Sandboxes Security Runs applications in a sandbox Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.