Osy 1
Osy 1
Chapter1
Overview of operating system
Charactristics of o.s
1.Scheduling
2.Memory management
Overview of operating system
3.security
4. Interact with different software
5.Device management
6.File Management
Advantages:
1. Os provides a GUI interface for the user in the form of menu icons and buttons .
2. Os also allow us to sharing the resources with other users
3. It helps user to understand the functions of a computer
4. It is very easy to use.
5. It can be easily updated
Disadvantages
1.If the o.s is currupted than it will be affected entire system and the computer system will not work .
2.Only same task run at a time. 1000-10 task will be run
List any four functions or operations of operating system.
Process Management
A process is a program in execution. A process needs certain resources, including CPU time, memory,
files, and I/O devices, to accomplish its task.
Managing the programs that are running.
The operating system is responsible for the following activities in connection with process management.
The operating system is responsible for the following activities in connections with file management:
✦File creation and deletion.
✦Directory creation and deletion.
✦Support of primitives for manipulating files and directories.
✦Mapping files onto secondary storage.
✦File backup on stable (nonvolatile) storage media.
I/O System Management
Managing the input and output
Most modern computer systems use disks as the principle on-line storage medium, for both programs and data.
The operating system is responsible for the following activities in connection with disk management:
✦Free space management
✦Storage allocation
✦Disk scheduling
Networking (Distributed Systems)
♦Adistributed system is a collection processors that do not share memory or a clock. Each processor has
its own local memory.
♦The processors in the system are connected through a communication network.
♦Communication takes place using a protocol.
♦A distributed system provides user access to various system resources.
♦Access to a shared resource allows:
✦Computation speed-up
6. Security and Protection – Securing the system against possible unauthorized access to data orany other entity.
Protecting the parts of the system against damage.
List and draw a neat labelled diagram of four components of a computer system.
Overview of operating system
• Distributed systems
• Real time systems
1.Mainframe Systems
Reduce setup time by batching similar jobs Automatic job sequencing – automatically transfers control from one
job to another. First rudimentary
operating system. Resident monitor
initial control in monitor
control transfers to job
when job completes control transfers pack to monitor
Advantages –it is useful when we working with large files which can take more time to execute
Disadvantage :-once the job is submitted the user did not have any interaction with it.
.
Overview of operating system
In this the operating system picks up and begins to execute one of the jobs from memory.
Once this job needs an I/O operation operating system switches to another job (CPU and OS always busy).
Jobs in the memory are always less than the number of jobs on disk(Job Pool).
If several jobs are ready to run at the same time, then the system chooses which one to run through the
process of CPU Scheduling.
In Non-multiprogrammed system, there are moments when CPU sits idle and does not do any work.
In Multiprogramming system, CPU will never be idle and keeps on processing.
Time Sharing Systems are very similar to Multiprogramming batch systems. In fact time sharing systems are an
extension of multiprogramming systems.
In Time sharing systems the prime focus is on minimizing the response time, while in multiprogramming the
prime focus is to maximize the CPU usage.
The time sharing systems were developed to provide an interactive use of the computer system.
Example:-
In above figure the user 5 is active but user 1, user 2, user 3, and user 4 are in waiting statewhereas user 6 is in
ready status. As soon as the time slice of user 5 is completed, thecontrol moves on to the next ready user i.e. user
6. In this state user 2, user 3, user 4, anduser 5 are in waiting state and user 1 is in ready state. The process
continues in the sameway and so on.
Example linux, unix
The time-shared systems are more complex than the multi-programming systems.
Multiprocessor Operating System refers to the use of two or more central processing units (CPU) within a
single computer system. These multiple CPUs are in a close communication sharing the computer bus, memory
and other peripheral devices. The basic organization of multiprocessing system is shown in fig.
Distributed systems use multiple central processors to serve multiple real-timeapplications and multiple users.
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.
Overview of operating system
When many computers are interconnected to each other through a network for the purpose of sharing therir
task then it is called dos.
Advantages .if node is overused the dos shares all load to other node of network
Rtos is very useful where we required a quick response for eg hospital report.
In this oscpu provides maximum efforts to its task with quik response quick response
Real time systems are used in environment where a large number of events, mostly external to thecomputer
system, must be accepted and processes in a short time or within certain deadlines. Suchapplications include
real-time simulations, flight control, industrial control, military applicationsetc.
A primary objective of real-time systems is to provide quick event response time and thus meet thescheduling
deadlines. User convenience and resource utilization are of secondary concern to realtimesystem designers.In
Real time systems, processor is allocated to the highest priority process among those that are ready to execute.
Higher priority processes preempt execution of the lower priority processes. Thisform is called as ‘priority –
based preemptive scheduling’.
The primary functions of the real time operating system are to:
1. Manage the processor and other system resources to meet the requirements of an application.
3. Move the data efficiently among processes and to perform coordination among theseprocesses.
Hard real time means strict about adherence to each task deadline. When an event occurs, it shouldbe serviced
within the predictable time at all times in a given hard real time system.
Example: -video transmission, each picture frame and audio must be transferred at fixed rate.
Soft real time means that only the precedence and sequence for the task operations are defined,interrupt
latencies and context switching latencies are small. There can be few deviations betweenexpected latencies of
the tasks and observed time constraints and a few deadline misses areaccepted.
Switching Occurs when the currently running Carried out each time after the time slice
process stops. of process is finished.
The process can be executed by a single In this process two or more users can uses a
processor processor on their own terminal
Overview of operating system
In case of multi-programming before finishing a The execution power is taken off before finishing
task the execution power is not taken off of execution
Explain Mobile OS
A mobile operating system is the software platform on top of which other programs can run on mobile
devices. The operating system is responsible for determining the functions and features available on your
device
The Android Operating System is a Linux-based OS developed by the Open Handset Alliance (OHA).
The Android mobile operating system is Google's open and free software stack that includes an operating
system, middleware and also key applications for use on mobile devices, including smartphones.
Android OS Architecture
Android operating system comprise of different software components arranges in stack. Different
components of android operating system are –
Overview of operating system
1. Linux kernel
2. Libraries
4. Application Framework
5. Applications
Linux kernel
Libraries
Android Runtime
1. It is third component of the android architecture and placed in second layer from bottom
2. It provides most important part of android called Dalvik Virtual Machine.
3. Dalvik Virtual Machine is similar to JVM but only difference is that it is designed and optimized for
Android.
4. Dalvik Virtual machine uses core functions of Linux such as memory management and
multithreading and enables each android app to run its own process.
Application framework
3. Application framework manages the basic functions of android device such as resource
management, voice call management etc
Applications
Applications created by third party users or developer will be installed on application layer.