Operating System Structure
Operating System Structure
Acknowledgement
Alhamdulillah, Thanks to Allah SWT that with His willing gives us the opportunity to complete
this Final Assignment. This assignment was prepared for Operating System subject.
First and foremost, we would like to express our deepest thanks to our beloved lecturer and also
as guidance, Sir Nizam for the valuable guidance and advices. We also would like to thank her
for showing us some good example that related to the assignment.
Besides that, our deepest thanks and appreciation our parents, family, special mate of us, and
others for their cooperation, encouragement, constructive suggestion and full of support for the
assignment completion, from the beginning till the end. Also thanks to all of classmate, DITM
Group 4 and everyone, that has been contributed by supporting our work and helps us during the
assignment progress till it is fully completed.
Last but not least, our thanks to MCS College, for great facilities and accommodations that have
been provided. Without helps of the particular that mentioned above, we could face many
difficulties while doing this assignment.
INTRODUCTION
Linux, Windows 2000, Solaris, VMS, OS/400, AIX and z/OS are all examples of operating
systems.
CONTENT
Macintosh
The Macintosh (pronounced /ˈmækɨntɒʃ/ MAK-in-tosh),or Mac, is a series of several lines of
personal computers designed, developed, and marketed by Apple Inc. The first Macintosh was
introduced on January 24, 1984; it was the first commercially successful personal computer to
feature a mouse and a graphical user interface rather than a command-line interface. The
company continued to have success through the second half of the 1980s, only to see it dissipate
in the 1990s as the personal computer market shifted towards IBM PC compatible machines
running MS-DOS and Microsoft Windows.
cache, the cache must also be updated. This is especially a problem on multiprocessor systems
where more than one process may be accessing a datum. A component may be eliminated by an
equal-sized cache, but only if:
The cache and the component have equivalent state-saving capacity (that is, if the
component retains its data when electricity is removed, the cache must retain data as
well)
The operating system is responsible for the following activities in connection with disk
management:
In computing, a system call is how a program requests a service from an operating system's
kernel that it does not normally have permission to run. System calls provide the interface
between a process and the operating system. Most operations interacting with the system require
permissions not available to a user level process, e.g. I/O performed with a device present on the
system, or any form of communication with other processes requires the use of system calls.
That’s mean, system call basically request to the operating system to allow user to wait for I/O
completion.
1. Process Control.
load
execute
create process
terminate process
get/set process attributes
wait for time, wait event, signal event
allocate, free memory
2. File management.
3. Device Management.
4. Information Maintenance.
5. Communication.
executable programs are derived. Computer programs are written by the computer programmers
in the programming language and they are important for the overall functioning of the computer.
System program provide a convenient environment for program development and execution.
They can be divided into:
File manipulation
Status information
File modification
Programming language support
Program loading and execution
Communication
Application program
The operating system is responsible for the following activities in connection with process
management:
CASE STUDY
Introduction
Internal structure of operating systems can differ. Structures of operating systems tend to differ
depending on the arrangement of files, how hardware and applications are installed and
controlled and how the user interacts with the system. When it comes to Macintosh, Windows,
Linux, and other operating systems, their performance depends on it structure, as different
operating systems were built with different concepts and uses in mind.
MS DOS has the simplest structure. It was written with the aim of providing more functionality
in less space. It is not separated into modules. Though MS-DOS does have some structure, the
interface of MS-DOS and the levels of functionality are not clearly separated. MS-DOS follows
a layered approach. MS-DOS operating systems are divided into a number of layers; build one
on top of the other. The bottom layer, layer 0, contains hardware and the highest layer is known
as the user interface. Layers are chosen with modularity so that each utilizes services and
operations of only the immediate lower-level.
UNIX operating systems has limited structuring. It has two separate parts as System programs &
The Kernel. The UNIX operating system consists of everything below the system interface and
above the physical layer (hardware). It provides a large number of functions for one level like
file system, CPU scheduling, memory management and other operating system functions.
The modern operating systems implement kernel modules. This is structured using object-
oriented approaches. Each core component is separate and talks to each other over known
interfaces. Each core component is loadable as and when needed within the kernel. Overall it is
similar to the layered architecture but with more flexibility.
Virtual machines are structured by taking the layered approach to the most logical conclusion.
Virtual machines treat hardware's and the kernel of the operating system as though all are
hardware. Virtual machines provide interfaces matching the underlying hardware. Operating
systems generates the vision of multiple processes, all executing on its very own processor with
its very own virtual memory. It is structured in a manner that the resources of the physical
computer are shared to make the virtual machine. CPU scheduling creates the idea that users
have their own processor. A normal user time -sharing terminal serves as the virtual machine
operator's console.
These are some basic structures of operating systems. One can identify ways in which they are
alike and differ according to the purpose it was built to serve. The architectures differ with
technological advances, outdating techniques frequently.
1) System Components
Process Management
File Management
Secondary Management
Networking
Protection System
Command-Interpreter System
Program execution – system capability to load a program into memory and to run it.
I/O operations – since user programs cannot execute I/O operations directly, the
operating system must provide some means to perform I/O.
File-system manipulation – program capability to read, write, create, and delete files.
Error detection – ensure correct computing by detecting errors in the CPU and memory
hardware, in I/O devices, or in user programs.
Additional functions exist not for helping the user, but rather for ensuring efficient system
operations.
3) System Call
System calls provide the interface between a running program and the operating system.
Three general methods are used to pass parameters between a running program and the
operating system.
o Store the parameters in a table in memory, and the table address is passed as a
parameter in a register.
o Push (store) the parameters onto the stack by the program, and pop off the stack
by operating system.
Types of system calls
o Process control
o File management
o Device management
o Information maintenance
o Communications
System call sequence to copy the contents of one file to another file
4) Systems Programs
o File manipulation
o Status information
o File modification
o Communications
o Application programs
Most users’ view of the operation system is defined by system programs, not the actual
system calls.
5) System Structure
o Although MS-DOS has some structure, its interfaces and levels of functionality
are not well separated
6) Virtual Machines
1. A virtual machine takes the layered approach to its logical conclusion. It treats hardware
and the operating system kernel as though they were all hardware.
3. The operating system creates the illusion of multiple processes, each executing on its own
processor with its own (virtual) memory.
4. The resources of the physical computer are shared to create the virtual machines.
CPU scheduling can create the appearance that users have their own processor.
Spooling and a file system can provide virtual card readers and virtual line
printers.
The virtual machine concept is difficult to implement due to the effort required to
provide an exact duplicate to the underlying machine.
User goals – operating system should be convenient to use, easy to learn, reliable, safe,
and fast.
System goals – operating system should be easy to design, implement, and maintain, as
well as flexible, reliable, error-free, and efficient.
System implementation:
o Is more compact.
An operating system is far easier to port (move to some other hardware) if it is written in
a high-level language.
Operating systems are designed to run on any of a class of machines; the system must be
configured for each specific computer site.
Bootstrap program – code stored in ROM that is able to locate the kernel, load it into
memory, and start its execution.
CONCLUSION
4.0 Conclusion
Operating system is very use full and has lots of advantage. Operating system also allows you to
use your computer without any knowledge of coding. Operating system can improved security,
since only layers close to hardware need to operate in kernel mode.
improved portability since only small part of operating system interfaces with the hardware.
makes maintenance of operating system code easier.
Without an operating system, your hardware would not work at all, until you wrote your own
code for the hardware to do what you want. Operating system make your work easier.
4.1 Reference
Website:
http://wiki.answers.com/Q/What_are_the_five_5_major_Operating_system_activities_with_rega
rds_to_process_management
http://www.blurtit.com/q369171.html
http://en.wikipedia.org/wiki/System_call
http://communities.siliconindia.com/forum/ComputerSociety/Give_two_reasons_why_caches_ar
e_useful_What_problems_do_they_solve_What_problems_do_they_cause/6694
http://en.wikipedia.org/wiki/Microsoft_Windows
http://en.wikipedia.org/wiki/Macintosh
https://kis.kellogg.northwestern.edu/Pages/WindowsMacComparisonGuide.aspx