Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

Apas, Marc Neil M.

BS CPE 4 3:00 - 4:30 PM TTh


OPERATING SYSTEM REPORT

Written Report: Windows vs Unix 


(I/O and File Management) 

Organization of the I/O Function

Windows UNIX

- Windows I/O model is its support for - Unix uses a different kind of I/O Function
asynchronous I/O. The I/O manager Organization ​the SAS/C library provides a
presents a consistent interface to all large set of input/output functions. These
kernel-mode drivers, including lowest-level, functions are divided into two groups,
intermediate, and file system drivers. All standard I/O functions and UNIX style I/O
I/O requests to drivers are sent as I/O functions. The library provides several I/O
request packets (IRPs). techniques to meet the needs of different
applications. To achieve the best results,
- The I/O manager defines a set of standard you must make an informed choice about
routines, some required and others the techniques to use. The criterias are
optional, that drivers can support. All portability, capabilities, efficiency and
drivers follow a relatively consistent intended use of the files.
implementation model, given the
differences among peripheral devices and - UNIX also ​ implements sockets using
the differing functionality required of bus, streams.​ Streams mechanism in UNIX
function, filter, and file system drivers. provides a bi-directional pipeline between a
user process and a device driver, onto
- Windows drivers are object-based. Drivers which additional modules can be added.
and system hardware are represented as The device driver must respond to
objects. The I/O manager and other interrupts from its device - If the adjacent
operating system components export module is not prepared to accept data and
kernel-mode support routines that drivers the device driver's buffers are all full, then
can call to get work done by manipulating data is typically drop​ped. Streams are
the appropriate objects. widely used in UNIX, and are the preferred
approach for device drivers.
Apas, Marc Neil M. BS CPE 4 3:00 - 4:30 PM TTh
OPERATING SYSTEM REPORT

Design of the OS's I/O Management

Windows UNIX

- The design goals for the Windows I/O - The basic model of the UNIX I/O system is a
system are to provide an abstraction of sequence of bytes that can be accessed either
devices, both hardware (physical) and randomly or sequentially. There are no access
methods and no control blocks in a typical UNIX
software (virtual or logical). It has uniform
user process. UNIX processes use descriptors to
security and naming across devices to reference I/O streams. Descriptors are small
protect shareable resources and ​services unsigned integers obtained from the open and
that allow drivers to be written in a socket system calls. Descriptors represent
high-level language and easily ported underlying objects supported by the kernel, and
between different machine are created by system calls specific to the type
architectures.​ ​Dynamic loading and of object. These descriptors are 0, 1, 2, more
commonly known as standard input,standard
unloading of device drivers so that
output, and standard error, respectively. The
drivers can be loaded on demand and open, pipe, and socket system calls produce new
not consume system resources when descriptors with the lowest unused number
unneeded. It Support for Plug and Play, usable for a descriptor. Hardware devices have
where the system locates and installs filenames, and may be accessed by the user via
drivers for newly detected hardware, the same system calls used for regular files. The
assigns them hardware resources they kernel can distinguish a device special file or
special file, and can determine to what device it
require, and also allows applications to
refers, but most processes do not need to make
discover and activate device interfaces. this determination.
It has power management so that the
system or individual devices can enter
low power states.

File Organization and Access

Windows UNIX

- Windows organizes files by using a File - Unix​ operating systems use the
System that manages how files are Filesystem Hierarchy Standard as the
stored and accessed on your computer. common form for their directory
The part we can see when we interact structures. All files and directories
with the records that we create on our appear under the root directory "/", even
computers, such as documents, audio if they are stored on different physical
files, pictures​, and videos is the File d​evices. The boot block in UNIX or the
M​anager. Windows has a root directory partition boot sector in Windows
is called "drive:\". The directory contains information about how to boot
separator is usually a "\", but the the system off of this disk. This will
operating system also internally generally be the first sector of the
recognizes a "/". Physical and virtual volume if there is a bootable system
drives are named by a drive letter, as loaded on that volume, or the block will
opposed to being combined as one. be left vacant otherwise. UNIX treats all
This means that there is no "formal" root files as sequences of bytes, with no
directory, but rather that there are further consideration of the internal
independent root directories on each structure. With the exception of
drive. However, it is possible to combine executable binary programs, which it
two drives into one virtual drive letter, by must know how to load and find the first
setting a hard drive into a RAID setting executable statement, etc.
of 0.
Apas, Marc Neil M. BS CPE 4 3:00 - 4:30 PM TTh
OPERATING SYSTEM REPORT

File Directories

Windows UNIX

- In windows directories are referred to as - UNIX file and directory paths in UNIX
folders. However, a directory and folder use the forward slash "/" to separate
are synonymous. A file system or file directory names in a path. A hierarchical
directory enables applications to store structure for organizing files and
and retrieve files on storage devices. directories. This structure is often
Files are placed in a hierarchical referred to as a directory tree.​Picture
structure. The file system specifies this tree as growing upside down, with
naming conventions for files and the the root at the top and the leaves
format for specifying the path to a file in toward the bottom. The leaves are all
the tree structure. Each file system text and executable files, while the root,
consists of one or more drivers and trunk, limbs, branches, and twigs are all
dynamic-link libraries that define the directories.​ The tree has a single root
data formats and features of the file node, the slash character (/), and all
system. File systems can exist on many other directories are contained below
different types of storage devices, it.If you are using a server your shell will
including hard disks, jukeboxes, start from /home/yourUserName/
removable optical disks, tape back-up directory. ​Unix system can store
units, and memory cards. ​The only information in files so that other
constraint on the number of files that programs can read them, although
can be contained in a single directory is pipes complemented it in this role
the physical size of the disk on which starting with the Third Edition.
the directory is located

Secondary Storage Management

Windows UNIX

- Windows uses ​disk management is a - UNIX secondary storage is divided into


system utility in Windows that enables blocks or sectors. Blocks are the unit of
you to perform advanced storage tasks I/O transfer with secondary storage.
and make use for the secondary Provides persistent storage and
storage efficiently. To setup a new facilities for managing data.
drive, to extend a volume into space -
that's not already part of a volume on - Disk partition divided into cylinder
the same drive, to shrink a partition, groups. Cylinder group contains
usually so that you can extend a summary info such as free inodes and
neighboring partition. Windows also free block. Superblocks restructured
uses data clustering it maintains data and replicated across partition. It
integrity and provides failover support, support block fragments, long file
Addresses bottlenecks resulting from names, and disk block allocation.
front-end Web services, Addresses the
unique scalability and availability needs - It also uses free space management
of middle-tier applications. that every block is assigned an ID in
sequential order, reserves part of the
disk, a list of the IDs of free blocks is
maintained and number of blocks
required to hold the IDs depends on
how many blocks are free.
Apas, Marc Neil M. BS CPE 4 3:00 - 4:30 PM TTh
OPERATING SYSTEM REPORT

You might also like