Download presentation
Presentation is loading. Please wait.
Published bySuzanna Harmon Modified over 8 years ago
1
1 Carnegie Mellon A Tour of Computer Systems Instructors: Sejin Park
2
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
3 hello.c #include int main() { printf(“hello, world\n); return 0; }
4
4 Carnegie Mellon 1.1 Information is Bits + Context Bit Byte ASCII : represent text characters File : sequence of bytes Text file Binary file
5
5 Carnegie Mellon 1.2 Programs Are Translated
6
6 Carnegie Mellon 1.3 Compiler Structure
7
7 Carnegie Mellon 1.3 Compiler Phases
8
8 Carnegie Mellon 1.4.1 Hardware Organization
9
9 Carnegie Mellon 1.4.2 Running a Program
10
10 Carnegie Mellon 1.4.2 Running a Program
11
11 Carnegie Mellon 1.4.2 Running a Program
12
12 Carnegie Mellon 1.5 Caches
13
13 Carnegie Mellon 1.6 Storage Hierarchy
14
14 Carnegie Mellon 1.7 Operating Systems
15
15 Carnegie Mellon 1.7.1 Process Process : Program in Execution
16
16 Carnegie Mellon 1.7.1 Process Execution
17
17 Carnegie Mellon 1.7.1 Process State Transition
18
18 Carnegie Mellon 1.7.1 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
19 Carnegie Mellon 1.7.2 Threads
20
20 Carnegie Mellon 1.7.2 Threads
21
21 Carnegie Mellon 1.7.3 Virtual Memory
22
22 Carnegie Mellon 1.7.3 Virtual Memory Paging Physical Memory Virtual Memory
23
23 Carnegie Mellon 1.7.3 Dynamic Address Translation
24
24 Carnegie Mellon 1.7.4 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
25 Carnegie Mellon 1.7.4 File Control Block – File Attributes
26
26 Carnegie Mellon 1.7.4 UNIX inode
27
27 Carnegie Mellon 1.8 Communication Networks
28
28 Carnegie Mellon 1.8.1 Client-Server Models
29
29 1.9.1 Amdahl’s Law T : total time a : a fraction of time k : improve its performance by factor of k S : speedup
30
30 Carnegie Mellon 1.9.2 Concurrency and Parallelism Thread-level concurrency Instruction-level parallelism Single-instruction, Multiple-Data (SIMD) parallelism
31
31 Carnegie Mellon 1.9.2 Concurrency and Parallelism
32
32 Carnegie Mellon 1.9.2 Abstractions in Computer Systems
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.