UNIT-I (B) Working Knowledge of Computer System: Hat Is Perating Ystem
UNIT-I (B) Working Knowledge of Computer System: Hat Is Perating Ystem
Definition:
An operating system is a program that acts as an interface between the user and the computer hardware
and controls the execution of all kinds of programs.
Kernel: When an operating system is loaded into memory, the kernel loads first and remains in memory
until the operating system is shut down again. The kernel is responsible for low-level tasks such as disk
management, task management and memory management. The kernel provides and manages computer
resources (like CPU, memory, I/O devices), allowing other programs to run and use these resources. The
kernel also sets up memory address space for applications, loads files with application code into memory,
sets up the execution stack for programs and branches out to particular locations inside programs for
execution.
There are 5 types of kernels, namely, monolithic kernel, micro kernel, exo kernel, hybrid kernel (micro and
monolithic) and nano kernel.
Other users sit at workstations, connected to networks of other workstations and servers. These users
have dedicated resources at their disposal, but they also share resources such as networking and servers.
An operating system can also be viewed as a control program that manages the execution of user
programs to prevent errors and improper use of the computer. It is especially concerned with the
operation and control of I/O devices.
Memory Management
Process Management
Device Management
File Management
Security
Control over system performance
Job accounting
Error detecting aids
Coordination between other software and users
i. Memory Management
Memory management refers to management of Primary Memory or Main Memory. Main memory is a
large array of words or bytes where each word or byte has its own address. Main memory provides a fast
storage that can be access directly by the CPU. So for a program to be executed, it must remain in the
main memory. A computer has four general types of memory. In order of speed, they are: high-speed
cache, main memory, secondary memory, and disk storage. The operating system must balance the needs
of each process with the different types of memory available.
Keeps tracks of primary memory i.e. what part of it are in use by whom, what part are not in use.
In multiprogramming, OS decides which process will get memory when and how much.
Allocates the memory when the process requests it to do so.
De-allocates the memory when the process no longer needs it or has been terminated.
Fig 2. List of processes running on computer system. Process is a program in execution. That’s why all
processes are exe files.
In multiprogramming environment, OS decides which process gets the processor when and how much
time. This function is called process scheduling. Operating System does the following activities for
processor management.
Keeps tracks of processor and status of process. Program responsible for this task is known as
traffic controller.
Allocates the processor (CPU) to a process.
De-allocates processor when process is no longer required.
Keeps tracks of all devices. Program responsible for this task is known as the I/O controller.
Decides which process gets the device when and for how much time.
Allocates the device in the efficient way.
De-allocates devices.
Keeps track of information, location, uses, status etc. The collective facilities are often known as
file system.
Decides who gets the resources.
Allocates the resources.
De-allocates the resources.
Security -- By means of password and similar other techniques, preventing unauthorized access
to programs and data.
Control over system performance -- Recording delays between request for a service and response
from the system.
Job accounting -- Keeping track of time and resources used by various jobs and users.
Error detecting aids -- Production of dumps, traces, error messages and other debugging and error
detecting aids.
Coordination between other software and users -- Coordination and assignment of compilers,
interpreters, assemblers and other software to the various users of the computer systems.
Operating System is also Known as the Resource Manager Means Operating System will Manages all the
Resources those are Attached to the System means all the Resource like Memory and Processor and all
the Input output Devices those are Attached to the System are Known as the Resources of the Computer
System and the Operating system will Manage all the Resources of the System. The Operating System will
identify at which Time the CPU will perform which Operation and in which Time the Memory is used by
which Programs. And which Input Device will respond to which Request of the user means When the Input
and Output Devices are used by the which Programs. So this will manage all the Resources those are
attached to the Computer System.
Operating system also acts as Control Program. A Control Program manages the execution of user
programs to prevent errors and improper use of the computer. It is concerned with operation and control
of I/O devices.
So really, your operating system is designed to let the CPU deal with one thing at a time. But because it's
a computer and not a harried secretary, it can multitask so fast that the user wouldn't even know.
Driver is a program that controls a device. Every device, whether it be a printer, disk drive, or keyboard,
must have a driver program. Many drivers, such as the keyboard driver, come with the operating system.
For other devices, you may need to load a new driver when you connect the device to your computer. In
DOS systems, drivers are files with a.SYS extension. In Windows environments, drivers often have a .DRV
extension. Each device has its own set of specialized commands that only its driver knows.
You can check the drivers installed on your PC by searching for device manager. Under this option, you
will get the list of drivers installed. Like in above figure, the drivers for audio input and output are
Microphones and Speakers. By right clicking it, you can check its properties, its details, update your driver,
etc.
In reality, the earliest computers didn't have operating systems; they were huge machines tasked with
one program at a time. For that reason, they didn't really need operating systems. In fact, the earliest
computers required a user to physically connect and disconnect wires from a plug board to retrieve
computations. But if you don't have an operating system, can you make your computer do anything?
Yes. But you have a lot of work to do. Without an operating system using and enforcing a standard,
systematic approach to running the computer, you're put in the position of writing code (or programs)
that must tell the computer exactly what to do. So if you want to type up a document in a word processing
program, you'd have to create from scratch code that tells your computer to respond to each character
pressed on your keyboard. Then you'd have to write a code that told the computer how those responses
must translate to a screen. You'd have to tell your computer how to draw the character you want! Think
of every single option or possibility your word processing program has. You'd have to write code for every
single one of those directly onto your hard drive.
1. Windows 1
Working on MS-DOS was a little bit tough for the users because it dealt with playing with various
commands. Taking this into consideration, Microsoft announced its first edition of Windows on
1983. Microsoft released the first version (Windows 1.0) on 2nd November 1985. Now, instead of
seeing the boring black screen, the user can just move a mouse to point and manage clicks through
the screen. Drop-down menus, icons and dialog boxes made the programs easier to learn and use.
2. Windows 2.0
On December 9, 1987, Microsoft released the second version of Windows, the Windows 2.0. With
the improved speed, reliability and usability, computers now started becoming a part of daily life
for some workers. Desktop icons and use of keyboard shortcuts helped to speed up the work.
3. Windows 3.0
On October 2012, Microsoft launched the Windows 8 edition, the most colorful and good-looking
Operating System. Microsoft came up with a totally new interface that smartly worked on both
the touch and on mouse and keyboard. The start menu was revised in this edition with apps and
tiles that connect to people, files and websites.
12. Windows 10
The recent addition to the windows family is Windows 10. It was introduced to the world on 29
July 2015. A number of new features like Cortana, the Microsoft Edge, The Start menu, Windowed
Windows Store apps, Virtual desktops/Task View, Action Center, Revamped core apps, The Xbox
app, Continuum, Unified settings etc made their existence in this latest edition. Microsoft Edge is
the new Web browser of Windows 10 which is specially designed to be a lightweight web browser.
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 novices to use, which
is why Microsoft later bundled the graphic-based Windows operating system with DOS.
DOS is still included with Windows, but is run from the Windows operating system instead of the
other way around.
The DOS command prompt can be opened in Windows by selecting "Run..." from the Start Menu
and typing cmd.
DOS translate the command issued by the user in the format that is understandable by the
computer and instruct computer to work accordingly.
It also translates the result and any error message in the format for the user to understand.
Once this process is over, the ROM bootstrap loader attempts to read the Boot record and if
successful, passes the control on to it.
The instructions/programs in the boot record then load the rest of the program.
After the ROM boot strap loader turns the control over to boot record, the boot tries to load
the DOS into the memory by reading the two hidden files IBMBIO.COM and IBMDOS.COM.
If these two are found, they are loaded along with the DOS command interpreter
COMMAND.COM. COMMAND.COM contains routines that interpret what is typed in through the
keyboard in the DOS command mode.
By comparing the input with the list of command, it acts by executing the required
routines/commands or by searching for the required routine utility and loads it into the memory.
Fig 4. dir command lists all the directories in the current drive
CD or CHDIR: Change DOS current working directory to specified directory on specified disk or to check
for the current directory on the specified or default drive.
RMDIR or RD: Removes a specified sub-directory only when it is empty. This command cannot remove
root directory (C:\) or current working directory. Example: rmdir cse8cse11
TREE: Displays all of the directory paths found on the specified drive.
PATH: Displays or sets a sequential search path for the executable files.
COPY: Copies one or more files from source disk/drive to the specified disk/drive.
BACKUP: Stores or back up one or more files/directories from source disk/drive to other destination
disk/drive.
c) General Commands:
If a user require help on any DOS commands he/she may type help and command name at the command
prompt.
DOSBox emulates an IBM PC compatible computer running a DOS operating system. Many IBM PC
compatible graphics and sound cards are also emulated. This means that original DOS programs (including
PC games) are provided an environment in which they can run correctly, even though the modern
computers have dropped support for that old environment.
An DOS operating system is called a "disk" operating system because it was stored on a floppy disk or hard
drive, as opposed to either being embedded in a ROM chip (like early versions of Mac OS were), or stored
on a cartridge, cassette, tape reel, or some other storage medium. The usage fell out of favor due to the
popularity of MS-DOS: "DOS" was thereafter used to refer only to MS-DOS or compatible operating
systems. Also the command prompt in Windows is MS-DOS.
One of the first things you might want to do is to transfer your files and settings from your old computer
to the brand new computer. You can do this using an Easy Transfer able, CDs or DVDs, a USB flash drive,
a network folder, or an external hard disk. You can transfer almost everything from your old computer to
the new one. User accounts, Files and Folders, Program Settings, Internet Settings and Favorites, E-mail
settings, contacts and messages.
This feature of Windows Operating System allows you to upgrade to any higher windows version available
for your system, so you can take full advantage of enhanced digital entertainment and other features.
Windows anytime upgrade helps you compare features in each Windows edition and walks you through
the upgrade process. (Windows 8 being the latest Operating system currently available for all the user
worldwide). The upgrade will cost you as per the version being selected by you.
3) Windows Basics:
If you are new to Windows or want to refresh your knowledge about areas such as security or working
with digital pictures, this features will help you to get started. Here you can learn how to help keep your
computer more secure, work with digital pictures, use the mouse and keyboard, work with files and
programs, use email, connect to and explore the internet and many more. A new user can even see video
or animations that will explain the working of the windows operating system and will show you step by
step instructions in order to configure your pc according to your desires.
Most folders in Windows have a search box in the upper- right corner. To find a file in a folder, type a part
of the file name in the search box. You can also use this feature when you don't know where a files is
actually located or when you want to do an advanced search. Since its will be an indexed searching the
results will be very quick and very close to your search entries.
5) Parental Controls:
Parental Controls give you the means to decide when your children use the computer, which website they
visit, and which games they are allowed to play. You can also get reports of your children's computer
activity as well.
Ease of Access Center is the place to find and change settings that can enhance how you hear, see and
use your computer. You can adjust text size and the speed of your mouse. This is also where you can go
to set up your screen reader and find other helpful tools.
7) Default Programs:
This is a features of your Windows Operating System where you can adjust and set your default programs,
associate a file type or a protocol with a program, change and set auto play settings, set program access
and computer defaults.
This features helps a user with a graphical user interface to another computer. It is a proprietary protocol
developed by Microsoft especially for Windows Operating System. Basically by entering the IP address of
the other computer you can directly see that computer's desktop right on to your desktop. Normally
known as desktop sharing. Using this you can share files and data and even solve problem without having
physical access to the other computer.
Ques: Write the differences between Windows and DOS Operating System.