본문 바로가기

코딩이야기/운영체제10

파일 시스템(File system) - 2. big picture 파일 시스템(File system) - 2. big picture 1. Views on Files 1) Userfile name + bytes offset 2) Kernelino + logical block# 3) Device Driverphysical Block# 4) Devicedrivce#+ cylinder# + head# + sector# #차이가 발생하는 이유는?UNIX OS에서는 file을 bytes seqeunce로 정의했지만, 실제로 저장하는 위치는 block device이므로 block단위 io에 맞게 매핑이 필요함. #Buffer Cache최근에 접근한 File의 Data Block내용을 Main Memory에 저장해 두는 공간디스크로부터 한번 읽어온 파일의 내용에 다시 접근할때, 빠르.. 2016. 4. 11.
파일시스템(File system) - 1. files and directories #File system- 1. files and directories 1. file: A named collection of bytes on stored storage.유닉스 파일시스템에서 파일은 저장장치에 기록된 바이트들의 이름있는 집합으로 정의됩니다.파일을 연속된 바이트들로 봄으로써 매우 간단하게 표현해 낸 것을 알 수 있습니다.이 파일은 후에 사용자, 커널, 장치의 관점에서 달리 정의 될 수 있습니다. 파일의 종류에는1) ordinary : 사용자 프로그램, 시스템 유틸리티 프로그램에 의해 입력된 정보를 포함하는 파일이다2) directory : 파일의 이름과 아이노드를 위한 포인터를 포함한다. 디렉터리는 계층적으로 구성되며, 디렉터리 파일은 쓰기 보호 속성을 가진 일반 파일로서 파일 시스템만이 이.. 2016. 4. 11.
04-4.Processes and Threads - Process creation and Termination Processses and Threads Process Creation and Termination Process Creation(1) Creating new processes : Build one from scratch ( Ex : UNIX Process 0 ) Clone an exsting one ( Ex : UNIX fork() syscall ) From scratch Load code and data into memory Create (empty) call stack Create and initialize a process control block Put process on ready list Process Creation (2) Cloning : UNIX fork() system call Sto.. 2016. 2. 19.
04-3.Processes and Threads - Context Switching Processes and Threads 이 글은 서울대학교 평생교육원 열린강좌 중, 홍성수 교수님의 운영체제 강의 및 pt자료를 정리한 내용임을 알려드립니다. 서울대학교 평생교육원 열린강좌 - 운영체제 (홍성수 교수님)Processes and Threads AgendaProcess ConceptsProcess SchedulingContext SwitchingProcess Creation and TerminationMultiThreadingConclusion Context Switching Context Switching (1) How does the dispatcher save and restore state? Mechanism : Context switch memory context : code, st.. 2016. 2. 19.