Fit Unit-4
Fit Unit-4
OPERATING SYSTEM:
Important questions:
1. What is OS? explain functions of OS? 2019,2021,2022
2. Operating system - types of operating systems2019,2022
3. Time sharing and batch processing system. 2019
4. Multi-tasking, multi-processing 2021
5. Discuss briefly compilers, interpreters. 2021
6. Difference between assemblers, compliers, interpreters 2019,
1|Page
Operating System-function of Operating system.
An operating system (OS) is a software that acts as an interface between the user and the
computer hardware. It manages all the resources of the computer, such as the CPU, memory,
storage, and devices, and provides a platform for running applications.
1. Booting: The OS is responsible for booting the computer system when it is turned on. This
involves loading the OS kernel into memory and initializing the hardware components.
2. Process management: The OS manages the execution of computer programs, known as
processes. This includes allocating resources to processes, scheduling them to run on the
CPU, and terminating them when they are finished.
3. Memory management: The OS manages the computer's memory, ensuring that it is used
efficiently and that no two processes try to access the same memory location at the same
time.
4. File management: The OS provides a file system for storing and organizing files on the
computer's hard drive. This includes creating and deleting files and directories, and
managing file access permissions.
5. Device management: The OS manages the computer's devices, such as the keyboard,
mouse, monitor, and printer. This includes configuring the devices and providing drivers so
that they can be used by other programs.
6. Security: The OS provides security features to protect the computer from unauthorized
access and malware attacks. This includes features such as user authentication, access
control, and encryption.
2|Page
It is an important part of any system management process, as it allows managers to identify areas
where the system is performing well and areas where improvement is needed.
There are a variety of different ways to measure system performance, depending on the specific
system being measured. Some common metrics include:
Throughput: The number of units of work that the system can process in a given period of
time.
Response time: The time it takes for the system to respond to a request.
Accuracy: The percentage of outputs that are correct.
Availability: The percentage of time that the system is up and running.
Reliability: The likelihood that the system will operate successfully over a given period of
time.
Security: The system's ability to protect data and resources from unauthorized access.
3|Page
Assembly language is a low-level language that uses mnemonics to represent
instructions.
The assembler converts these mnemonics into binary code that the computer can
execute.
2. Compiler:
A compiler reads the complete source program written in a high-level language and
translates it into an equivalent program in machine language
It processes the entire source code as a whole and generates object code if the
source code is error-free.
The object code can be executed multiple times without recompiling.
3. Interpreter:
An interpreter translates a single statement of the source program into machine
code and executes it immediately before moving on to the next line.
It works line by line, translating and executing each statement sequentially
.
These language processors play crucial roles in software development, enabling programmers to
write code in higher-level languages and facilitating communication between humans and
machines
4|Page
Multiprogramming is the technique of keeping multiple programs in the main
memory at the same time ready for execution.
When one program needs to wait for I/O operations, the CPU can switch to another
program that is ready to execute.
This technique helps to keep the CPU busy and improve system performance.
3. Multitasking:
Multitasking is similar to multiprogramming but with a key difference: it allows
multiple programs to run simultaneously on a single CPU by dividing the CPU time
between them.
The CPU switches between programs so quickly that it appears as if they are running
simultaneously.
This technique is useful for interactive applications that require user input, such as
word processors or web browsers.
4. Multiprocessing:
Multiprocessing is the use of more than one CPU in a computer system.
Each CPU can execute different programs or parts of the same program
simultaneously, which can significantly improve system performance.
5. Time-sharing:
Time-sharing is a technique that allows multiple users to access a computer system
simultaneously by dividing the CPU time between them.
Each user has the illusion of having exclusive use of the system, even though they are
sharing it with others.
This technique is useful for systems that need to support multiple users, such as
mainframe computers or web servers.
These concepts are fundamental to modern operating systems and play crucial roles in managing
computer resources and improving system performance.
Syntax: C:\>Dir
Syntax C:\>Date
5|Page
4. TIME: To view and change the time.
Syntax: C:\>Time
Syntax: C:\>Exit
Syntax: cd..
Syntax: VER
Syntax: Vol
6|Page
External Commands:
There are various external disk operating system commands:
1. DELTREE- Short for delete tree, deltree is a command used to delete files and
directories permanently from the computer.
2. TREE- Allows the user to view a listing of files and folders in an easy to read the
listing.
3. PRINT – The print command allows users to print a text file to a line printer, in the
background.
4. FIND – Allows you to search for text within a file.
5. XCOPY – xcopy is a powerful version of the copy command with additional features;
has the capability of moving files, directories, and even whole drives from one
location to another.
6. DISK COMP- Compares the contents of a floppy disk in the source drive to the
contents of a floppy disk in the target drive.
7. FORMAT – Format is used to erase information off of a computer diskette or fixed
drive.
8. ATTRIB – Attrib allows a user to change the attributes of a file or files.
9. SORT- Sorts the input and displays the output to the screen.
10.CHKDSK- Chkdsk is a utility that checks the computer’s hard drive status for any
cross-linked or any additional errors with the hard drive.
11.MOVE- Allows you to move files or directories from one folder to another, or from
one drive to another.
7|Page
What is Windows Operating System? -explain its features.
Windows Operating System (OS) is a graphical user interface (GUI)-based operating system
developed by Microsoft. It is the most popular operating system in the world, running on over 75%
of all personal computers.
2. Taskbar: It is an area where users can check which applications in their PC/laptop are
currently open or not.
3. Task Manager: It allows users to view and manage the processes and applications running
on their computer .
4. Control Panel: It contains many tools that help in managing the computer’s settings and
hardware .
5. Command Prompt: It is a command-line interpreter that allows users to execute
commands and scripts.
6. Recycle Bin: It stores deleted files temporarily so that users can restore them if needed.
7. Settings: It allows users to customize various settings related to their computer, such as
display settings, sound settings, network settings, etc.
8. Registry Editor: It allows users to view and edit the Windows registry, which contains
configuration information for the operating system and installed applications.
9. Cortana: It is a virtual assistant that helps users perform various tasks using voice
commands or text input.
10. System Information: It provides detailed information about the computer’s hardware and
software configuration.
11. Start Menu: It provides quick access to frequently used applications and settings
8|Page
Unix / Linux Operating System
Unix and Linux are popular operating systems that are widely used in servers, supercomputers, and
mobile devices. Here are some of the features of Unix/Linux Operating System:
1. Open Source: Unix/Linux is an open-source operating system, which means that its source
code is freely available to the public. This allows developers to modify and distribute the
operating system as they see fit .
2. Multiuser Capability: Multiple users can access the same system resources like memory,
hard disk, etc. But they have to log in with their own user ID and password.
3. Multitasking: More than one function can be performed simultaneously by dividing the
CPU time intelligently.
4. Portability: Unix/Linux can work on different types of hardware platforms, making it a
portable operating system.
5. Shell & Command Line Interface: Unix/Linux provides a powerful command-line interface
(CLI) that allows users to interact with the operating system using text commands.
6. Graphical User Interface: Unix/Linux also provides a graphical user interface (GUI) that
makes it easy for users to interact with the operating system using icons and menus.
7. End-to-end Encryption: Unix/Linux provides strong encryption capabilities that help
protect data from unauthorized access.
8. Configure Keyboards in Different Languages: Unix/Linux supports multiple languages
and allows users to configure their keyboards accordingly.
9. Frequent New Updates: Unix/Linux is constantly updated with new features and security
patches, making it a secure and reliable operating system.
9|Page
10 | P a g e