week8/9 Flashcards
What file attributes are there
Name, file identifier, type, location, size, protection
What are the two kinds of level directories
single level, and two level (with the top being a directory and the second being the user file directory)
What is mounting
A way for directories to be accessible to the file system
What are the 5 levels of the file system
Logical (permissions), file organization level (block management), basic (W/R blocks), I/O, devices
What are the 4 On disk structures
boot control block (contains the code to start the OS), partition control blocks (hold the number of free blocks and the size of the blocks, called superblock), the directory structure, and the file control block (hold information about the file).
What is the process for opening a file?
Search the directory for the file identifier, see if the FCB (file control…) is in the memory, allocate the entry in the process control block table (allows for the buffer to be set)
What are three ways to allocate blocks to files
Contiguous (end-to-end, it’s fast), linked allocation (gives the first and last block, and points to all others in between), Indexed allocation (like linked but more overhead as one block has all the pointers)
How do you close a file?
point to the FCB, decrement counter, free the process in the file control block
Polling of I/O relies on what kind of bit?
the busy bit
What is it called when devices transfer data to/from the controller
the direct memory access, might use physical or logical addresses
What are examples of a character device and a block device?
Character= USB, keyboard Block= disk drives, tape drives
What is a major and minor number
the major number connects the device to the driver, the minor is used by the driver to work the device
What is a distributed system? what are the two types?
networked processors connected by a communication protocol. Two types are Network OS, and distributed OS
What are reasons for having distributed systems
Resource sharing, Reliability, Computation speedup, data migration (think NFS), process migration (like load balancing)
What are the two types of network topology?
Fully connected, and partially connected