OSY MSBTE CHP1
OSY MSBTE CHP1
Chapter 1 (8M)
1. Enlist types of operating system. Explain multiprogramming OS in
Detail
Ans. Types of operating system
1.Batch Systems
2.Multiprogramming
3.Multitasking
4.Time-Sharing Systems
2. Write Unix command for following:
i)create a folder OSY ii) create a file FIRST in OSY folder
iii) List/display all files and directories.
iv) Write command to clear the screen
Ans.
i. create a folder OSY: $mkdir OSY
ii. create a file FIRST in OSY folder: $cd OSY $cat>FIRST or $ touch FIRST
iii. List/display all files and directories: $ls
iv. to clear screen: $clear
LINUX UNIX
It contains CLI & GUI It contains only CLI.
Linux is free to use. While, it is expensive
The source code is available to the The source code is not available to the
general public general public
It is portable and can be executed on It is not portable
various hard drives
It is used for personal computers, It is used for servers, mainstream, high
desktops; also used for gam end computers etc
development, embedded systems etc
Windows Linux
Windows was developed by Microsoft Linux was developed by Linux Torvalds
The first version of Windows OS was The first version of Linux was 0.01
1.0
It is a proprietary operating system It is an open source operating system
Files are stored in folders Files are stored in tree structure
It is High cost It is low cost
It has Hybrid Architecture It has Monolithic Architecture
7. Explain Time Sharing OS
Ans. In time sharing system, the CPU executes multiple jobs by switching
Among them. The switches occur so frequently that the users can Interact
with each program while it is running. It includes aninteractive computer
system which provides direct communication between the user and the
system. A time-sharing system allows many users to share the computer
resources simultaneously. The time-sharing system provides the direct
access to many users where CPU time is divided among all the users on
scheduled basis. The operating system allocates a time slice to each user.
When this time is expired, it passes control to the next user on the system.
The time allowed is extremely small and the users are given the impression
that each of them has their own CPU and they are the sole owner of the
CPU. In this time slice each user gets attention of the CPU. The objective of
time sharing system is to minimize response time of process.
8. Describe Multiprocessor OS with Advantages
Ans. In a uni-processor system, only one process executes at a time. Multiprocessing is the
use of two or more CPUs (processors) within a single Computer system. The term also
refers to the ability of a system to support more than one processor within a single
computer system. Now since there are multiple processors available, multiple processes
can be executed at a time. These multi processors share the computer bus, sometimes the
clock, memory and peripheral devices also.
• With the help of multiprocessing, many processes can be executed simultaneously. Say
processes P1, P2, P3 and P4 are waiting for execution. Now in a single processor
system, firstly one process will execute, then the other, then the other and so on.
• But with multiprocessing, each process can be assigned to a different processor for its
execution. If its a dual-core processor (2 processors), two processes can be executed
simultaneously and thus will be two times faster, similarly a quad core processor will be
four times as fast as a single processor.
Multiprocessing refers to the hardware (i.e., the CPU units) rather than the software (i.e.,
running processes). If the underlying hardware provides more than one processor then that
is multiprocessing. It is the ability of the system to leverage multiple processors’ computing
power. Multiprocessor system has 3 main advantages:
Ans. : Real time system has well defined fixed time constraints. Processing should be done
within the Defined constraints. A primary objective of real-time systems is to provide quick
event response time and thus meet the scheduling deadlines. User convenience and
resource utilization are of secondary concern to real-time system 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.
This form is called as ‘priority–based preemptive scheduling’.
1. Hard Real Time: - Hard real time means strict about adherence to each task deadline.
When an event occurs, it should be serviced within the predictable time at all times in a
given hard real time system.
Example: Video Transmission, each picture frame and audio must betransferred at fixed
rate.
2. Soft Real Time: 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 between expected latencies of the tasks and observed time
constraints and a few deadline misses areaccepted.