OS Module 1 Complete Solutions
OS Module 1 Complete Solutions
MODULE 1
PART-A
Batch Systems:
2. Distinguish between hard real time systems and soft real time systems
DOS:
Advantages:
There are various advantages of the distributed operating system. Some of them are
as follow:
● It may share all resources (CPU, disk, network interface, nodes, computers,
and so on) from one site to another, increasing data availability across the
entire system.
● It increases the speed of data exchange from one site to another site.
● It is an open system since it may be accessed from both local and remote
locations.
● Most distributed systems are made up of several nodes that interact to make
them fault-tolerant. If a single machine fails, the system remains operational.
Some programs are designed to appear to make use of CPU idle time,
meaning that they run at a low priority (but slightly higher than idle priority) so
as not to impact programs that run at normal priority. This allows non-crucial
background programs to only run when it would not affect the performance of
other applications. Many operating systems, for example Windows, Linux, and
macOS will run an idle task, which is a special task loaded by the OS
scheduler on a CPU when there is nothing for the CPU to do.
Interrupt:
The term Interrupt is usually reserved for hardware interrupts. They are
program control interruptions caused by external hardware events. Here,
external means external to the CPU. Hardware interrupts usually come from
many different sources such as timer chip, peripheral devices (keyboards,
mouse, etc.), I/O ports (serial, parallel, etc.), disk drives, CMOS clock,
expansion cards (sound card, video card, etc). That means hardware
interrupts almost never occur due to some event related to the executing
program.
Exception:
Interrupt Exception
These are Hardware interrupts. These are Software interrupts.
These are normal events and These are abnormal events and often
shouldn’t interfere with the normal result in the termination of a program
running of a computer.
In a Batch operating system, the user does not have direct access to the
computer and cannot directly interact with it either.
In this type of OS, jobs are prepared for each user, and all those jobs have
been imprinted or stored in the punch card-like structure, which is submitted
to the computer operator.
This kind of operating system mostly works on offline devices and once the
punch card is submitted to the computer operator, the computer works
according to the code or program written on the card.
With Time sharing OS, users at different locations or terminals can access the
same computer at the same time. Here, the CPU uses the switching
mechanism that helps it to switch from one job to another so that each job
gets equal and processing time.
An RTOS is a data processing system whose response time to the input is very
short. RTOS is also known as the brain of the real-time system because of its
immediate response to the input.
In this operating system, different computers interact with one another and
communicate in order to exchange data. Internet works on this system where
everyone is linked with each other to communicate. It can also be termed as
the Networking operating system, which supports a high level of
communication.
PART-B
Functions:
· Disk management: operating system manages the disk space. It manages the
stored files and folders in a proper way.
· Process management: CPU can perform one task at one time. If there are
many tasks, the operating system decides which task should get the CPU.
· Device controlling: the hardware devices are controlled with the help of small
software called device drivers.
Multiprogramming systems:
· The operating system picks up and begins to execute one of the jobs from
memory.
· Once this job needs an input and output operation the operating system
switches to another job.
· Jobs in the memory are always less than the no. of jobs on disk.
· 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.
· This short period of time during which the user gets the CPU is known as
time slice, time slot or quantum.
There are various situations where you must require system calls in the
operating system. Following of the situations are as follows:
II. Network connections require the system calls to send and receive data
packets.
III. If you want to read or write a file, you need to make system calls.
IV. If you want to access hardware devices, including a printer, scanner, you
need a system call.
Systems programs.
Simple batch: there is no direct interaction between user and the computer.
· Real time OS: special purpose OS used in computers that has strict time
constraints for any job to be performed.
Refer here
In a Non-multiprogrammed system, there are moments when the CPU sits idle
and does not do any work. In a Multiprogramming system, the CPU will never
be idle and keeps on processing.
Multitasking: A multitasking operating system (OS) is one that can work on
more than one task at a time by switching between the tasks very rapidly. The
tasks may all pertain to a single user or to multiple users. A multitasking OS
can save the current state of each user and task so that it does not lose its
place when it comes back to a task to resume its work. This allows the system
to switch smoothly between tasks.
· Then the computer operator places a batch of several jobs on an I/P device.
11. Draw and explain the architecture of windows 2000 and traditional UNIX
Windows 2000 included advanced features and had overall better support for
computer hardware.
Some of the significant features of Windows 2000 Professional are:
● Support for FAT16, FAT32, and NTFS.
● Increased uptime of the system and significantly fewer OS reboot
scenarios.
● Windows Installer tracks applications and recognizes and replaces
missing components.
● Protects memory of individual apps and processes to avoid a single app
bringing the system down.
● Encrypted file systems protect sensitive data.
12. State the differences between system call and system program.
System program: These are the programs that are used and required to run
the system - machine, input output devices and other connected peripherals.
They are also known as System softwares.
System calls: System calls are the calls made by the applications or the
processors for a particular execution of a code block; also known as interrupts
in a computer. You can call the CPU to execute your program with a high
priority and execute other commands later.
Monolithic architecture
Microkernel architecture
Hybrid architecture tries to get the best features of both monolithic kernels as
well as microkernels. Hybrid kernel aims to have optimal performance and the
flexibility to modify and upgrade kernel services.
Ex: Apple IOS, Apple macOS for desktop machines uses hybrid architecture
1. Supercomputer
2. Mainframe computer
3. Minicomputer
4. Workstation
5. PC (Personal Computer)
1. Supercomputer:
When we talk about speed, then the first name that comes to mind when
thinking of computers is supercomputers. They are the biggest and fastest
computers(in terms of speed of processing data). Supercomputers are
designed such that they can process a huge amount of data, like processing
trillions of instructions or data just in a second. This is because of the
thousands of interconnected processors in supercomputers. It is basically
used in scientific and engineering applications such as weather forecasting,
scientific simulations, and nuclear energy research. It was first developed by
Roger Cray in 1976.
2. Mainframe computer:
3. Minicomputer:
4. Workstation:
5. PC (Personal Computer):
6. Define interrupt?
13. Explain how protection is provided for the hardware resources by the
operating system.
19. Define Virtual Memory? Describe the use of fork () and exec () system calls?