Barie OS Assignment
Barie OS Assignment
Barie OS Assignment
COLLEGE: INFORMATICS
ID : RU1351/12
CONTENTS page
Page | 1
INTRODUCTION………………………………………………………………………3
Summary:………………………………………….18
REFERENCE……………………………………………………19
Page | 2
INTRODUCTION
An operating system acts as an intermediary between the user of a computer and
computer hardware. The purpose of an operating system is to provide an environment
in which a user can execute programs conveniently and efficiently.
In this assignment, we will understand about the different file tribute, concepts of file
and its storage along with operations on files.
Operating systems are there from the very first computer generation and they keep
evolving with time.
we will also discuss some of the important types of operating systems which are most
commonly used as well as operating system architecture.
Page | 3
It is a method of data collection that is used as a medium for giving input and receiving output
from that program.
In general, a file is a sequence of bits, bytes, or records whose meaning is defined by the file
creator and user.
Every File has a logical location where they are located for storage and retrieval
Files are stored on disk or other storage and do not disappear when a user logs off.
Files have names and are associated with access permission that permits controlled
sharing.
Files could be arranged or more complex structures to reflect the relationship between
them.
When operating system defines different file structures, it also contains the code
to support these file structure. Unix, MS-DOS support minimum number of file
structure.
Page | 4
A file has a name and data. Moreover, it also stores meta information like file creation date and time,
current size, last modified date, etc. All this information is called the attributes of a file system.
Identifier: Every file is identified by a unique tag number within a file system known as an
identifier.
Type: This attribute is required for systems that support various types of files.
Protection. This attribute assigns and controls the access rights of reading, writing, and
executing the file.
Time, date and security: It is used for protection, security, and also used for monitoring
It is a hardware file that reads or writes data character by character, like mouse, printer, and more.
Ordinary files
It allows the user to perform operations like add, delete, and modify.
Directory Files
Directory contains files and other related information about those files. Its basically a folder to
hold and organize multiple files.
Special files
These files represent physical device like disks, terminals, printers, networks, tape drive etc.
Page | 5
These files are of two types −
Block special files − data is handled in blocks as in the case of disks and tapes.
Sequential access
Page | 6
Sequential access
A sequential access is that in which the records are accessed in some sequence, i.e., the
information in the file is processed in order, one record after the other.
This access method is the most primitive one.
Example: Compilers usually access files in this fashion.
Direct/Random access
Each record has its own address on the file with by the help of which it can be directly
accessed for reading or writing.
The records need not be in any sequence within the file and they need not be in adjacent
locations on the storage medium.
An index is created for each file which contains pointers to various blocks.
Index is searched sequentially and its pointer is used to access the file directlySpace Allocation
Linked Allocation
Indexed Allocation
Contiguous Allocation
Contiguous Allocation
In this method,
Linked Allocation
In this method,
Page | 7
The directory contains a link or pointer in the first block of a file.
Indexed Allocation
In this method,
An index block is created, having all the pointers for specific files.
All files should have individual index blocks to store the addresses for disk space.
Page | 8
Executable exe, com, bin or none ready-to-run machine- language program
Object obj, o complied, machine language, not linked
Source code c. p, pas, 177, asm, a source code in various languages
Batch bat, sh Series of commands to be executed
Text txt, doc textual data documents
Word processor doc,docs, tex, rrf, etc. various word-processor formats
Library lib, h libraries of routines
related files grouped into one file,
Archive arc, zip, tar
sometimes compressed.
Page | 9
2.1 Types of Operating System
An operating system is a type of software interface between the user and the device
hardware.
It allows users to communicate with the device and perform the desired functions.
Operating systems use two components to manage computer programs and
applications.
The kernel is the core inner component that processes data at the hardware level.
It handles input-output management, memory and process management.
The shell is the outer layer that manages the interaction between the user and the OS.
The shell communicates with the operating system by either taking the input from the
user or a shell script.
A shell script is a sequence of system commands that are stored in a file.
Page | 10
The problems with Batch Systems are as follows −
Problem of reliability.
Question of security and integrity of user programs and data.
Problem of data communication.
Page | 11
Data processing jobs are distributed among the processors accordingly.
The processors communicate with one another through various communication lines
(such as high-speed buses or telephone lines).
These are referred as loosely coupled systems or distributed systems.
Processors in a distributed system may vary in size and function.
These processors are referred as sites, nodes, computers, and so on.
The advantages of distributed systems are as follows −
With resource sharing facility, a user at one site may be able to use the resources
available at another.
Speedup the exchange of data with one another via electronic mail.
If one site fails in a distributed system, the remaining sites can potentially continue
operating.
Better service to the customers.
Reduction of the load on the host computer.
Reduction of delays in data processing.
Disadvantages of Distributed Operating System:
To establish distributed systems the language which is used are not well defined yet
These types of systems are not readily available as they are very expensive. Not only
that the underlying software is highly complex and not understood well yet
Page | 12
The disadvantages of network operating systems are as follows −
Page | 13
Task Shifting: The time assigned for shifting tasks in these systems are very less. For
example, in older systems, it takes about 10 microseconds in shifting one task to
another, and in the latest systems, it takes 3 microseconds.
Page | 14
A monolithic OS architecture
Page | 15
A layered OS architecture
Page | 16
A microkernel OS architecture
A network operating system enables its processes to access resources (e.g., files) that reside on
other independent computers on a network.
The structure of many networked and distributed operating systems is often based on the
client/server model.
The client computers in such a network request resources—such as files and processor time—
via the appropriate network protocol.
The servers respond with the appropriate resources. A distributed operating system is a single
operating system that manages resources on more than one computer system.
EX :- MIT's Chord operating system and the Amoeba operating system from the Vrije Universiteit
(VU) in Amsterdam.
Page | 17
Summary:
A file is a collection of correlated information which is recorded on secondary or non-volatile storage like
magnetic disks, optical disks, and tapes.
Linked Allocation
Indexed Allocation
Contiguous Allocation
An operating system is a software that acts as an interface between the user and the computer hardware
and controls the execution of all kinds of programs.
A monolithic os is an operating system architecture where the entire operating system is working in kernel
space and is alone in supervisor mode.
As operating systems became larger and more complex, purely monolithic designs became unwieldy. The
layered approach to operating systems attempts to address this issue by grouping components that perform
similar functions into layers
In microkernel designs, most operating system components—such as process management, networking, file
system interaction and device management—execute outside the kernel with a lower privilege level.
Microkernels exhibit a high degree of modularity, making them extensible, portable and scalable.
A network operating system enables its processes to access resources (e.g., files) that reside on other
independent computers on a network. The structure of many networked and distributed operating
systems is often based on the client/server model..
Page | 18
REFERENCE
https://www.tutorialspoint.com/ operating_system/os_file_system.htm
https://www.technologyuk.net/ computing/computer-software/operating-systems/operating-system-
architecture.shtml
Mano, M. Morris, and Kime, Charles R., Logic and Computer Design Fundamentals, 4th Ed, Prentice Hall,
2007.
M. Morris Mano. Digital Design, 3rd edition. Prentice-Hall, Upper Saddle River, NJ, 2002.
Andrew S. Tanenbaum. Modern Operating Systems, 2nd ed. Prentice Hall, Upper Saddle River, NJ,
2001.
Abraham Silberschatz, Peter Galvin, Greg Gagne. Operating System Concepts, 7th edition. John Wiley &
Sons, Inc., Hoboken, NJ, 2004.
John Hennessy and David Patterson, Computer Architecture: A Quantitative Approach. 4th edition.
Morgan Kaufmann, Amsterdam, Boston, 2007
Page | 19