PPS UNIT 1
PPS UNIT 1
Today’s Target
High level language and low level language
Translator and its types. By Pragya Rajvanshi
Programming language and its type.
B.Tech M.tech (C.S.E.)
Ques) Differentiate between high level and low level programming languages. (2021-22)
Translators:
A program written in high-level language is called as source code.
To convert the source code into machine code, translators are needed.
A translator takes a program written in source language as input and converts it
Low level language is high memory efficient.
into a program in target language as output.
It also detects and reports the error during translation.
Ques) What do you mean by translator? Explain Assembler, compiler and
interpreter.(2017-18)(2018-19)
Roles of translator:
1. Translating the high-level language program input into an equivalent machine
language program.
2. Providing diagnostic messages wherever the programmer violates specification
of the high-level language program
Ques) What do you mean by translator? Explain Assembler, compiler and
interpreter.(2017-18)(2018-19)
Compiler Assembler Interpreter
level language to low-level language code into machine high-level language to low-level
Computer Program:
A program is a set of instructions following the rules of the chosen
language.
Programming Language:
A vocabulary and set of grammatical rules (syntax) for instructing a
computer to perform specific tasks.
Programming languages can be used to create computer programs.
The term programming language usually refers to high-level languages,
such as C, C++,JAVA.
Ques) What do you mean by programming languages? Explain different types of
programming languages. (2020-21)
Programs written in machine language are not portable. The problem is that
the computer doesn't understand the assembly code, so we need a way to
convert it to machine code using assembler.
➢ To provide programs that can be used on more than one type of machine
with very few changes.
2. Decreasing the skill level required of users so that they can concentrate on the
application rather than coding, and thus solves their own problems without the
help of a professional programmer.
Ques) What do you mean by programming languages? Explain different types of
programming languages. (2020-21)
COMPILER INTERPRETER
It takes an entire program at a time. It takes a single line of code or instruction at a time.
It generates intermediate object code. It does not produce any intermediate object code.
The compilation is done before execution. Compilation and execution take place simultaneously.
Memory requirement is more due to the creation of object It requires less memory as it does not create intermediate
code. object code.
Display all errors after compilation all at the same time. Displays error of each line one by one.
Today’s Target
What is System software and application software.
What is Linker and Loader.
By Pragya Rajvanshi
System Software is a set of programs that control and manage the operations
of computer hardware.
It also helps application programs to execute correctly.
System Software are designed to control the operation and extend the
processing functionalities of a computer system.
System software makes the operation of a computer more fast, effective, and
secure.
Example: Operating system
What is system software?
Today’s Target
What is operating System.
Types of operation system.
By Pragya Rajvanshi
Operating System:
It is system software that performs all the basic tasks like managing file, process,
and memory.
Operating system acts as manager of all the resources, i.e. resource manager.
Operating system becomes an interface between user and machine.
Ques) What do you mean by operating system? Explain different types of operating
systems.
Ques) What do you mean by operating system? Explain different types of operating
systems.
Multiprogramming OS:
In a multiprogramming system there are one or more programs loaded in main
memory which are ready to execute.
Only one program at a time is able to get the CPU for executing its instructions
while all the others are waiting their turn.
The main idea of multiprogramming is to maximize the use of CPU time.
Ques) What do you mean by operating system? Explain different types of operating
systems.
Multiprogramming OS:
Suppose the currently running process is performing an I/O task; OS may
interrupt that process and give the control to one of the other in-main-memory
programs that are ready to execute. In this way, no CPU time is wasted by the
system waiting for the I/O task to be completed.
Ques) What do you mean by operating system? Explain different types of operating
systems.
Ques) What do you mean by operating system? Explain different types of operating
systems.
Multitasking OS:
Multitasking means working on multiple tasks simultaneously, such as using your
computer while listening to music.
Also, using a browser, search for something on the internet and create a word
document that is your assignment.
It appears that all of the tasks are taking place at the same time.
It is not all of the tasks happening simultaneously; the processor moves between
them at such a fast pace that we believe they are happening simultaneously.
Ques) What do you mean by operating system? Explain different types of operating
systems.
Multiprocessing OS:
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.
Several variations on the basic scheme exist, e.g., multiple cores on one die or
multiple dies in one package or multiple packages in one system.
A system can be both multiprogrammed by having multiple programs running at
the same time and multiprocessing by having more than one physical processor.
Ques) What do you mean by operating system? Explain different types of operating
systems.
Ques) What do you mean by operating system? Explain different types of operating
systems.
Multithreading OS:
Multithreading is an execution model that allows a single process to have
multiple code segments (i.e., threads) run concurrently within the “context”
of that process.
You can think of threads as child processes that share the parent process
resources but execute independently.
Multiple threads of a single process can share the CPU in a single CPU
system or (purely) run in parallel in a multiprocessing system
Ques) What do you mean by operating system? Explain different types of operating
systems.
Ques) What do you mean by operating system? Explain different types of operating
systems.
Time-Sharing OS:
Each task has given some time to execute, so that all the tasks work smoothly.
Each user gets time of CPU as they use single system. These systems are also
known as Multitasking Systems.
The task can be from single user or from different users also. The time that each
task gets to execute is called quantum.
After this time interval is over OS switches over to next task.
Example of Time-Sharing OS is UNIX
Ques) What do you mean by operating system? Explain different types of operating
systems.
Ques) What do you mean by operating system? Explain different types of operating
systems.
Distributed OS:
Various autonomous interconnected computers communicate each
other using a shared communication network.
Independent systems possess their own memory unit and CPU.
These are referred as loosely coupled systems or distributed systems.
These systems processors differ in sizes and functions.
Ques) What do you mean by operating system? Explain different types of operating
systems.
The major benefit of working with these types of operating system is that
it is always possible that one user can access the files or software which
are not actually present on his system but on some other system
connected within this network i.e., remote access is enabled within the
devices connected in that network.
Example of Distributed Operating System are- LOCUS
Ques) What do you mean by operating system? Explain different types of operating
systems.
Ques) What do you mean by operating system? Explain different types of operating
systems.
Network OS:
These systems run on a server and provide the capability to manage data,
users, groups, security, applications, and other networking functions.
These types of operating systems allows shared access of files, printers, security,
applications, and other networking functions over a small private network.
Examples of Network Operating System are: Microsoft Windows Server 2003,
Microsoft Windows Server 2008, UNIX, Linux etc.
Ques) What do you mean by operating system? Explain different types of operating
systems.
:
Ques) What do you mean by operating system? Explain different types of operating
systems.
Real-Time OS:
These types of OS serve the real-time systems.
The time interval required to process and respond to inputs is very small.
This time interval is called response time.
Real-time systems are used when there are times requirements are very
strict like missile systems, air traffic control systems, robots etc.
Ques) What do you mean by operating system? Explain different types of operating
systems.