Professional Documents
Culture Documents
3. Multiple processes must be able to access the • Used with magnetic tapes
information at once.
• Random-access
file system.
• Files whose bytes or records can be read in
• Files are logical units of information created by
any order
processes.
• Used with discs
• Processes can read existing files and create new ones
if need be. • Essential for many applications, such as
database systems
• Files are managed by the operating system.
File Systems
• Implement an abstraction for secondary storage (files)
Files
• A file is data with some properties
File Types
a) An executable file
b) An archive
Directory Operations
• System calls for managing directories:
• Create
• Delete
• Opendir
• Closedir
• Readdir
• Rename
• Link
Directories • Uplink
• Directories serve two purposes
File System Layout
• For users, they provide a structured way to • File systems define a block size (e.g., 4KB)
organize files
• Disk space is allocated in granularity of blocks
• For the file system, they provide a convenient
naming interface that allows the • A “Master Block” determines location of root
implementation to separate logical file directory
organization from physical file placement on the
• Always at a well-known disk location
disk
• Often replicated across disk for reliability
• Most file systems support multi-level directories
• A free map determines which blocks are free,
• Naming hierarchies (/, /usr, /usr/local/, …)
allocated
• Most file systems support the notion of a current
• Usually a bitmap, one bit per block on the disk
directory
• Also stored on disk, cached in memory for
• Relative names specified with respect to
performance
current directory
• Remaining disk blocks used to store files (and dirs)
• Absolute names start from the root of
directory tree • There are many ways to do this
• Cost
• Security
• indicates how protected the network is, Wide Area Network (WAN)
including the information that is transmitted over the
network • Long distances
• refers to the likelihood that the network is Personal Area Network (PAN)
available for use when it is required • Network organized around an individual
• Scalability person within a single building
Type of Connection
• Point to Point - single transmitter and receiver
Type of transmission
Unicast
Multicast
Broadcast
Physical Topology
Categories of Networks
Local Area Network (LAN)
• Short distances