Computer system 돈벌자 2010-10-03
Keyboards Disk drives Magnetic tape drives Mouse devices Hardware Keyboards Disk drives Floppy : personal Hard : rigid much faster access to their information. Magnetic tape drives Mouse devices Bar code readers USB Input device Output device Main memory CPU
Disk drives Magnetic tape drives Screen Printers USB Hardware Input device Output device Main memory CPU
volatile RAM Hardware Input device Output device Main memory CPU An important characteristic of main memory is that it is volatile. RAM Another important characteristic of main memory is its access method, which is Random Storage Management. Input device Output device Main memory CPU
CPU(Central processing unit) Hardware Input device CPU(Central processing unit) 컴퓨터 시스템 전체를 제어하는 장치로서, 다양한 입력장치로부터 자료를 받아서 처리한 후 그 결과를 출력장치로 보내는 일련의 과정을 제어하고 조정하는 일을 수행한다. Output device IN CPU MEM OUT Main memory CPU The results go to the output device The CPU sends the processed data back to memory Data flows from the input device into main memory The CPU brings the data into its registers for processing
Operating System(OS) Software OS Loader Trap Concurrent 컴퓨터의 하드웨어 시스템을 효율적으로 운영하기 위한 소프트웨어. 컴퓨터를 작동하고 시스템 전체를 감시하며, 처리하여야 할 데이터의 관리와 작업 계획 따위를 조정하는 여러 가지의 프로그램으로 구성되어 있다. - File management - Memory management - Processor management OS Loader Trap Concurrent
Loader Software OS Loader Trap Concurrent An important function of an operating system is to manage the jobs that users submit to be executed OS Loader Trap Concurrent
Traps (interrupt) Trap handler Software Input device Loader Trap Synchronous interrupt : software interrupt Asynchronous interrupt : Time outs, I/O completion Trap handler Input device Loader Trap Concurrent
Multiprogramming Multiprocessing CPU scheduling Problem Software - Preemption : RR/SRP - Non-Preemption : FIFO/SJF/HRN Problem - Critical Section / mutual exclusion Input device Loader Trap Concurrent Process
Uniprograming Multiprograming Paging Segmentation Storage Management fixed-partition : Internal/External Fragmentation. variable-partition : first/best/worst-fit algorithm. External Fragmentation. coalescing/ compaction Paging Segmentation 주기억장치 가상기억장치
Page replacement algorithm Hardware Page replacement algorithm FIFO / LRU 주기억장치 가상기억장치
Database Relation Queries Database System Database A database is a collection of files that Contain interrelated information, and a database system is a program that lets the user add, delete, and modify records in the database. Relation Relational database systems store information in files that appear to have a table structure. Queries Select / Project / Join Database
# Function Recursive function Mutual recursion Programming – C++ # Function A common term for a function return void is procedure, and a common term for a function that returns some other type is just function. Recursive function Mutual recursion Dynamic memory allocation (new/delete) -> int* pVal = new int; (malloc/free) -> int* pVal = (int*)malloc(sizeof(int)); C++
The carry bit/ The overflow bit Two’s Complement Binary Representation Information representation Binary storage ASCII -> UNICODE Base conversions Decimal->binary The carry bit/ The overflow bit Two’s Complement Binary Representation sign bit / NOT operation+1 Floating Point Representation hidden bit/ Exceed Representations Information