1.Overview of Operating System
1.Overview of Operating System
2. Main-Memory Management :
Memory management refers to management of Primary Memory or Main
Memory.
An Operating System does the following activities for memory
management −
Keep track of which part of memory are currently being used and by
whom.
Decide which process are loaded into memory when memory space
becomes available
Allocate and deallocate memory space as needed.
3. File Management
A file system is normally organized into directories for easy navigation
and usage.
The main major activities of an operating system in regard to file
management are
1. The creation and deletion of files and directories.
2. The backup of files on stable storage media
3.Provide access to files and allocation of storage space for files
4.File Security
4. Device Management
The Device Management tasks includes :
1.Open,close and write device drivers
2.Communicate,control and monitor the device drivers
5. Security
By means of password and similar other techniques, it prevents
unauthorized access to programs and data.
MultiPrgramming – 4mark
MultiProgramming means more than one process in main memory which are
ready to execute.
In multiprogramming, more than one program lies in the memory.
The scheduler selects the jobs to be placed in ready queue from a number of
programs.
The ready queue is placed in memory and the existence of more than one
program in main memory is known as multiprogramming.
Since there is only one processor, there multiple programs cannot be
executed at a time.
Instead the operating system executes part of one program, then the part of
another and so on.
Example of multiprogramming: user can open word, excel, access and other
applications in a system.
Advantages-
1.High CPU utilization
2.Less waiting time,response time etc.
Disadvantges :
1.Difficult Scheduling.
2.Main memory management required.
Example :
In the above diagram, three processes are shown.
When CPU is allocated to the process it goes into executing state.
When process A is executing other two processes (B,C) are in waiting state.
When process B is executing processes (A,C) are in waiting and when
process C is executing processes (A,B) are in waiting state.
At a time only one process can have CPU for execution.
Advantages :
It provides the advantage of quick response.
It reduces CPU idle time.
Disadvantages
Complex to design.
Problem of reliability.
Extra -Question of security and integrity of user programs and data can be
raised.
DisAdvantages –
Large Main Memory Required
More Complex
Disadvantages
Trouble shooting is very difficult
Difficult to manage network complexity
Security problem due to sharing
Applications:
1. Flight Control System
2. Simulations
3. Industrial control
4. Military applications
5.Medical Care System.
First generation 1945 – 1955 - vacuum tubes, plug boards: The earliest
electronic digital computers had no operating systems. Machines of the time
were so primitive that programs were often entered one bit at time on rows
of mechanical switches (plug boards). Programming languages were
unknown (not even assembly languages).
Hardware:
The hardware is Centre of structure that provides the Operating System with basic
services.
The hardware consists of all peripherals like memory (RAM, HDD, FDD etc)
processor, mouse, and other input devices, terminals, printers etc.
Kernel:
The kernel is the heart of the system - a collection of programs mostly written in
‘C’ which communicate with the hardware directly.
Kernel is an interface between hardware of the system and shell. It is loaded into
the memory when the system is booted.
It manages the system’s memory, schedules processes, decides their priorities and
performs other tasks.
Shell:
The shell is an interface between the user and the kernel that isolates the user from
knowledge of kernel functions.
The shell accepts the commands keyed by the users and checks for their syntax
and gives out error messages if something goes wrong.
It is a command interpreter of user requests.
Application programs:
The various compilers for languages like c, c++, pascal, fortran and other
application programs written by programmers which are used by users for their
operations falls in this layers.
Only those persons who maintain on “account” with the computer system can use
the UNIX system.
User can directly access application programs through which they can interact
with the system.
COMMUNICATION:
The communication may be within the network of a single main computer or
between two or more such computer networks. The users can easily exchange mail,
data programs through such networks.
SECURITY:
Unix has 3 inherent provisions for protecting data.
i) Assign passwords and login name to user’s area.
ii) Provide read, write and execute permission to each file.
iii) Encrypt files into an unreadable format, and decrypting the file is
also possible.
PORTABILITY:
Unix is a highly portable OS. It can be ported to a variety of hardware platforms.
UNIX can be ported to almost any computer architecture because it is coded in ‘C’
Machine-independence:
The System hides the machine architecture from the user, making it easier to write
applications.
Disadvantage:
Overall performance speed is slow as requests pass through multiple layers of
software before they reach the hardware.
Mobile operating system
A mobile operating system (OS) is software that allows smartphones, tablet
PCs (personal computers) and other devices to run applications and programs.
A mobile OS typically starts up when a device powers on, presenting a screen with
icons that present information and provide application access. Mobile operating
systems also manage cellular and wireless network connectivity, as well as phone
access.
Stands for "Disk Operating System". DOS was the first operating system used
by IBM-compatible computers. It was originally available in two versions that
were essentially the same, but marketed under two different names.
DOS uses a command line, or text-based interface, that allows the user to type
commands. By typing simple instructions such as pwd (print working directory)
and cd (change directory), the user can browse the files on the hard drive, open
files, and run programs. While the commands are simple to type, the user must
know the basic commands in order to use DOS effectively (similar to Unix). This
made the operating system difficult for beginer to use, which is why Microsoft
later bundled the graphic-based Windows operating system with DOS.
What is Linux?