Professional Documents
Culture Documents
Layer
IT064IU - Introduction to Computing
SUMMER 2021
Instructor: Le Duy Tan, PhD
Email: ldtan@hcmiu.edu.vn 1
1. Operating system
Software
clasification
6
General Picture
Memory, Process, and CPU Management
vMultiprogramming The technique of keeping multiple programs in main
memory at the same time, competing for the CPU
vMemory management The act of keeping track of how and where programs are
loaded in main memory.
vProcess The dynamic representation of a program during execution
vProcess management The act of keeping track of information for active
processes
vCPU scheduling The act of determining which process in memory is given
access to the CPU so that it may execute
Batch Processing
In mordern computing system:
v.bat in Microsoft Windows
vShell script in linux
need the same or similar resources
pu
nc
he
dc
ard
s
A punched cards In early systems, human operators would organize jobs into batches
2. Memory Management
vPhysical address An actual address in the main
memory device
vLogical address: A reference to a stored value
relative to the program making the reference
vAddress binding The mapping from a logical
address to a physical address
Physical address
Memory management
Process P1 P2 P3 P4
Service time 60 30 90 25
2. File system directory
File Systems
vFile A named collection of data,
used for organizing secondary
memory.
vFile system The operating
system’s logical view of the files
it manages.
vDirectory A named group of
files.
File Operations
vCreate a file
vDelete a file
vOpen a file create / delete /
vClose a file open / close / write
vRead data from a file data / append data
vWrite data to a file ... to a file in Python
vReposition the current file pointer in a file
vAppend data to the end of a file
vTruncate a file (delete its contents)
vRename a file
vCopy a file
File protection
Directory Trees
vDirectory tree A structure showing the nested directory organization
of the file system
vRoot directory The topmost directory, in which all others are
contained
vPath Names:
absolute relative
slash A Unix directory tree backslash A Windows directory tree
Quiz
1. Windows:
Show the absolute
path to each of the
following files or
directories:
a) QTEffects.qtx
b) brooks.mp3
c) 3dMaze.scr
d) Powerpnt.exe
Quiz
2. Unix (Linux):
Show the absolute
path to each of the
following files or
directories:
a) tar
b) access.old
c) named.conf
d) smith
e) week3.txt
f) printall
Quiz
3. Windows:
Assuming the current
working directory is
C:\WINDOWS\System, give
the relative path name to the
following files or directories
a) QTImage.qtx
b) calc.exe
c) letters
d) proj3.java
e) adobep4.hlp
f) WinWord.exe
Summary
vAn operating system is the part of the system software that manages
resources on a computer.
vMultiprogramming is the technique for keeping multiple programs in
memory at the same time, contending for time on the CPU.
vBatch processing organizes jobs into batches that use the same or similar
resources.
vAn operating system must manage memory to control and monitor where
processes are loaded into main memory.
vCPU scheduling algorithms determine which process gets priority to use
vthe CPU next.
vA file system defines the way our secondary memory is organized.
vDirectories are used to organize files on disk.