1 Carnegie Mellon A Tour of Computer Systems Instructors: Sejin Park.

Slides:



Advertisements
Similar presentations
Slide 2-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 2 Using the Operating System 2.
Advertisements

1 CMSC421: Principles of Operating Systems Nilanjan Banerjee Principles of Operating Systems Assistant Professor, University of Maryland Baltimore County.
Allocation Methods - Contiguous
Processes CSCI 444/544 Operating Systems Fall 2008.
Introduction to Kernel
Embedded Real-time Systems The Linux kernel. The Operating System Kernel Resident in memory, privileged mode System calls offer general purpose services.
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.
File System Implementation
UNIX Unbounded 5 th Edition Amir Afzal Chapter 1 First Things First.
CS 6560 Operating System Design Lecture 13 Finish File Systems Block I/O Layer.
Computers Central Processor Unit. Basic Computer System MAIN MEMORY ALUCNTL..... BUS CONTROLLER Processor I/O moduleInterconnections BUS Memory.
Operating Systems (CS 340 D) Dr. Abeer Mahmoud Princess Nora University Faculty of Computer & Information Systems Computer science Department.
Process Concept Process Scheduling Operations on Processes Cooperating Processes Interprocess Communication Communication in Client-Server Systems.
University of Amsterdam Computer Systems – a guided tour Arnoud Visser 1 Computer Systems A guided Tour.
Introduction to Computer Systems Topics: Theme Four great realities of computer systems Chap 1 in “Computer Systems” book “The Class That Gives.
Intro to Computer Systems Summer 2014 COMP 2130 Introduction to Computer Systems Computing Science Thompson Rivers University.
Implementing Processes and Process Management Brian Bershad.
Lecture 5 Process, Thread and Task September 22, 2015 Kyu Ho Park.
CSE 451: Operating Systems Section 10 Project 3 wrap-up, final exam review.
Operating Systems ECE344 Ashvin Goel ECE University of Toronto Threads and Processes.
Ihr Logo Operating Systems Internals & Design Principles Fifth Edition William Stallings Chapter 2 (Part II) Operating System Overview.
Multiprogramming. Readings r Silberschatz, Galvin, Gagne, “Operating System Concepts”, 8 th edition: Chapter 3.1, 3.2.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 3: Processes.
Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Chapter 3: Processes.
OSes: 3. OS Structs 1 Operating Systems v Objectives –summarise OSes from several perspectives Certificate Program in Software Development CSE-TC and CSIM,
UNIX & Windows NT Name: Jing Bai ID: Date:8/28/00.
CSC 660: Advanced Operating Systems
Chapter 2 Process Management. 2 Objectives After finish this chapter, you will understand: the concept of a process. the process life cycle. process states.
What is a Process ? A program in execution.
Operating Systems: Summary INF1060: Introduction to Operating Systems and Data Communication.
FILE SYSTEM IMPLEMENTATION 1. 2 File-System Structure File structure Logical storage unit Collection of related information File system resides on secondary.
Hello world !!! ASCII representation of hello.c.
CHAPTER 1 COMPUTER SCIENCE II. HISTORY OF COMPUTERS (1.1) Eniac- one of the worlds first computers Used more electricity than an entire city block of.
Operating Systems A Biswas, Dept. of Information Technology.
CIT 140: Introduction to ITSlide #1 CSC 140: Introduction to IT Operating Systems.
Chapter 3 Getting Started. Copyright © 2005 Pearson Addison-Wesley. All rights reserved. Objectives To give an overview of the structure of a contemporary.
Introduction to Operating Systems Concepts
Introduction to Kernel
Computer Science II Chapter 1.
Chapter 3: Processes.
Chapter 11: File System Implementation
Chapter 1: A Tour of Computer Systems
Chapter 12: File System Implementation
Processes Chapter 3 These slides include text, figures, and information from Operating Systems Concepts, by Silberschatz, Galvin, and Gagne. They also.
Structure of Processes
Chapter 3: Processes.
Operating Systems: A Modern Perspective, Chapter 6
Chapter 3: Processes Source & Copyright: Operating System Concepts, Silberschatz, Galvin and Gagne.
Chapter 3: Processes.
MODULE-2: PROCESS MANAGEMENT
Process Realization In OS
Chapter 3: Processes.
Computer Systems Summary
Chapter 15, Exploring the Digital Domain
Computer Electronic device Accepts data - input
Mid Term review CSC345.
Introduction to Computer Systems
Computer Electronic device Accepts data - input
Processes and Process Management
Operating Systems Lecture 1.
Introduction to Computer Systems
Chapter 3: Processes.
CSE 451: Operating Systems Winter 2003 Lecture 4 Processes
Hardware Organization
System Calls System calls are the user API to the OS
Chapter 2 Operating System Overview
Implementing Processes, Threads, and Resources
Chapter 3 Processes.
EECE.4810/EECE.5730 Operating Systems
Components of a Linux System
Presentation transcript:

1 Carnegie Mellon A Tour of Computer Systems Instructors: Sejin Park

2 Carnegie Mellon Overview 1.1 Information is Bits + Context 1.2 Program Translation 1.3 Compilation Systems 1.4 Processors - Hardware Organization, Running a Program 1.5 Caches 1.6 Storage Hierarchy 1.7 Operating Systems - Processes, Threads, Virtual memory, Files 1.8 Communication Networks 1.9 Concurrency and Parallelism, Computer System Abstractions

3 hello.c #include int main() { printf(“hello, world\n); return 0; }

4 Carnegie Mellon 1.1 Information is Bits + Context Bit Byte ASCII : represent text characters File : sequence of bytes  Text file  Binary file

5 Carnegie Mellon 1.2 Programs Are Translated

6 Carnegie Mellon 1.3 Compiler Structure

7 Carnegie Mellon 1.3 Compiler Phases

8 Carnegie Mellon Hardware Organization

9 Carnegie Mellon Running a Program

10 Carnegie Mellon Running a Program

11 Carnegie Mellon Running a Program

12 Carnegie Mellon 1.5 Caches

13 Carnegie Mellon 1.6 Storage Hierarchy

14 Carnegie Mellon 1.7 Operating Systems

15 Carnegie Mellon Process Process : Program in Execution

16 Carnegie Mellon Process Execution

17 Carnegie Mellon Process State Transition

18 Carnegie Mellon Process Control Block struct task_struct { pid_t pid; /* process identifier */ long state; /* state of the process */ unsigned int time_slice /* scheduling information */ struct task_struct *parent; /* this process’s parent */ struct list_head children; /* this process’s children */ struct files_struct *files; /* list of open files */ struct mm_struct *mm; /* address space of this process */... } PCB representation in Linux / C

19 Carnegie Mellon Threads

20 Carnegie Mellon Threads

21 Carnegie Mellon Virtual Memory

22 Carnegie Mellon Virtual Memory Paging Physical Memory Virtual Memory

23 Carnegie Mellon Dynamic Address Translation

24 Carnegie Mellon Files File structure  Logical storage unit  Collection of related information File System resides on secondary storage (disks) Disk provides in-place rewrite and random access  I/O transfers performed in blocks of sectors (usually 512 bytes) File Control Block – storage structure consisting of information about a file Device driver controls the physical device File system organized into layers

25 Carnegie Mellon File Control Block – File Attributes

26 Carnegie Mellon UNIX inode

27 Carnegie Mellon 1.8 Communication Networks

28 Carnegie Mellon Client-Server Models

Amdahl’s Law T : total time a : a fraction of time k : improve its performance by factor of k S : speedup

30 Carnegie Mellon Concurrency and Parallelism Thread-level concurrency Instruction-level parallelism Single-instruction, Multiple-Data (SIMD) parallelism

31 Carnegie Mellon Concurrency and Parallelism

32 Carnegie Mellon Abstractions in Computer Systems