Linux Architecture Overview 1. Initialization Uboot – hardware init, loads kernel Kernel – remaining initialization, calls “init” Init – 1 st process,

Slides:



Advertisements
Similar presentations
Linux can be generally divided into four major components: 1. KERNEL – OS, ultimate boss The kernel is the core program that runs programs and manages.
Advertisements

1 OS Structure, Processes & Process Management. 2 Recap OS functions  Coordinator  Protection  Communication  Resource management  Service provider.
Slide 6-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 6 Implementing Processes, Threads, and Resources.
Operating Systems High Level View Chapter 1,2. Who is the User? End Users Application Programmers System Programmers Administrators.
Course Overview Introduction Computer System Structures
Figure 2.8 Compiler phases Compiling. Figure 2.9 Object module Linking.
Introduction to Kernel
Home: Phones OFF Please Unix Kernel Parminder Singh Kang Home:
Embedded Real-time Systems The Linux kernel. The Operating System Kernel Resident in memory, privileged mode System calls offer general purpose services.
Process Management. External View of the OS Hardware fork() CreateProcess() CreateThread() close() CloseHandle() sleep() semctl() signal() SetWaitableTimer()
1 I/O Devices Controller: physically controls the devices Devices are diverse and complicated Present simpler interface to OS E.g, convert a linear sector.
Figure 1.1 Interaction between applications and the operating system.
1 An Architectural View of an OS Inter-process communication Process Scheduling Process Control Subsystem File Subsystem Device Drivers Hardware Control.
CENG334 Introduction to Operating Systems Erol Sahin Dept of Computer Eng. Middle East Technical University Ankara, TURKEY URL:
1 Operating Systems Ch An Overview. Architecture of Computer Hardware and Systems Software Irv Englander, John Wiley, Bare Bones Computer.
Chapter 6 Implementing Processes, Threads, and Resources.
Introduction Operating Systems’ Concepts and Structure Lecture 1 ~ Spring, 2008 ~ Spring, 2008TUCN. Operating Systems. Lecture 1.
Slide 6-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 6.
Slide 6-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 6.
Chapter 8 Windows Outline Programming Windows 2000 System structure Processes and threads in Windows 2000 Memory management The Windows 2000 file.
hardware and operating systems basics.
OPERATING SYSTEM OVERVIEW. Contents Basic hardware elements.
Kernel, processes and threads Windows and Linux. Windows Architecture Operating system design Modified microkernel Layered Components HAL Interacts with.
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.
Operating Systems The kernel is a program that constitutes the central core of a computer operating system. It has complete control over everything that.
Processes and Threads CS550 Operating Systems. Processes and Threads These exist only at execution time They have fast state changes -> in memory and.
Chapter 2 Operating System Overview
© Janice Regan, CMPT 300, May CMPT 300 Introduction to Operating Systems Operating Systems Overview Part 2: History (continued)
Unit - VI. Linux and Real Time: Real Time Tasks Hard and Soft Real Time Tasks Linux Scheduling Latency Kernel Preemption Challenges in Kernel Preemption.
Ihr Logo Operating Systems Internals & Design Principles Fifth Edition William Stallings Chapter 2 (Part II) Operating System Overview.
LINUX System : Lecture 7 Bong-Soo Sohn Lecture notes acknowledgement : The design of UNIX Operating System.
OSes: 3. OS Structs 1 Operating Systems v Objectives –summarise OSes from several perspectives Certificate Program in Software Development CSE-TC and CSIM,
Linux Kernel Management. Module 9 – Kernel Administration ♦ Overview The innermost layer of Linux operating system is the kernel, which is a thin layer.
Slide 6-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 6 Implementing Processes, Threads, and Resources 6.
1 Chapter 4 Processes R. C. Chang. 2 Linux Processes n Each process is represented by a task_struct data structure (task and process are terms that Linux.
Silberschatz, Galvin and Gagne  Operating System Concepts Process Concept An operating system executes a variety of programs:  Batch system.
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.
1 Computer Systems II Introduction to Processes. 2 First Two Major Computer System Evolution Steps Led to the idea of multiprogramming (multiple concurrent.
UNIX Unit 1- Architecture of Unix - By Pratima.
User-Space-to-Kernel Interface
CSC414 “Introduction to UNIX/ Linux” Lecture 2. Schedule 1. Introduction to Unix/ Linux 2. Kernel Structure and Device Drivers. 3. System and Storage.
2 Processor(s)Main MemoryDevices Process, Thread & Resource Manager Memory Manager Device Manager File Manager.
Linux Architecture Overview.
Operating Systems: Summary INF1060: Introduction to Operating Systems and Data Communication.
Concepts and Structures. Main difficulties with OS design synchronization ensure a program waiting for an I/O device receives the signal mutual exclusion.
MINIX 3 – Introduction Béat Hirsbrunner Lecture 1, 18 September 2012 Main reference Andrew S. Tanenbaum, Albert S. Woodhull Operating Systems : Design.
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.
Overview A) Power on or reset B) 1st stage boot loader C) 2nd stage boot loader D) Operate system.
Introduction to Operating Systems Concepts
Introduction to Kernel
Chapter 1: A Tour of Computer Systems
Operating Systems •The kernel is a program that constitutes the central core of a computer operating system. It has complete control over everything that.
UBUNTU INSTALLATION
Operating Systems: A Modern Perspective, Chapter 6
O/S State Diagrams © 2004, D. J. Foreman.
Process and Thread State Diagrams
KERNEL ARCHITECTURE.
Chapter 3: Windows7 Part 2.
Chapter 3: Windows7 Part 2.
Mid Term review CSC345.
Lecture Topics: 11/1 General Operating System Concepts Processes
Process and Thread State Diagrams
Linux Architecture Overview.
LINUX System : Lecture 7 Lecture notes acknowledgement : The design of UNIX Operating System.
Implementing Processes, Threads, and Resources
Outline Process Management Process manager Hardware process
Implementing Processes, Threads, and Resources
Process and Thread State Diagrams
Process and Thread State Diagrams
Presentation transcript:

Linux Architecture Overview 1

Initialization Uboot – hardware init, loads kernel Kernel – remaining initialization, calls “init” Init – 1 st process, executes startup script – /etc/init.d/rcS Run_flphone.sh – startup script Nano-X – the X-Windows server Nanowm – sets bg image 2

System Structure MicroKernel – minimal functionality – Interprocess communication (IPC) – Memory management Autonomous processes & co-routines – VFS – Network stack – Process manager – Device drivers Non-kernel – windowing system – compiler – shells – Editors – utilities 3

System Structure 4 Kernel + h/w related code System Call Interface User mode space Device drivers Kernel mode space

System Structure-2 5 Sockets VFSVmem Process Control NFS TCP, IP, etc Proc, sysfs File sys’s mmap MM Process memory IPC Char dev’s Block Devices cache Scheduler Net Mgmt Device Module Bus drivers Net drivers Block Drivers Memory access Interrupts swap Char Drivers System Calls get us to these functionalities Bus controller Net adapter Monitor, keybd Disk controller CPU circuits MMU, RAM

Structural Problems Erroneous co-routines can block system Formal interfaces slow down system 6

Directory structure 7

System directories /bin Essential user command binaries that need to be available also in single user mode. /sbinEssential system binaries (e.g. init, insmod, ifup) /libLibraries for the binaries in /bin and /sbin /usr/binNon-essential user command binaries that are not needed in single user mode /usr/sbinNon-essential system binaries (e.g. daemons for network- services) /usr/libLibraries for the binaries in /usr/bin and /usr/sbin /etcHost-specific system-wide configuration files /devDevice files /homeUser home directories (optional) /procVirtual file system documenting kernel and process status as text files 8

© 2004, D. J. Foreman9 Basic Transitions # ready queues may be >1

© 2004, D. J. Foreman10 Linux Process/Thread States Running Uninterruptible ReadyTerminated Interruptible Stopped* Any signal or event New H/W Signal * Requires action from another process waiting

© 2004, D. J. Foreman11 Windows Thread States CPU scheduled WaitingTerminated RunningReady Page/stack wait New preempted Block requested Block released Runnable Not runnable