You are on page 1of 2

Assignment No 2

Submitted By
Ali Yaqteen
Roll No
19011598-105
Program
Software Engineering
Section
SE-4C
Submitted to
Mr. Shahzaib Abbas
Q1: Does an Operating System can run multiple kernels at same time?
Yes, an operating system can run multiple kernels at same time.
Firmware has been built on systems developed in recent decades and it works after our OS
starts up. The firmware is very good and complex and can run several kernels simultaneously.
Firmware like UEFI and SMM allows several kernels to run simultaneously.
Q2: Multi programming instruction can execute on multi
processors system.
There is one or more programs in the main memory that are ready to run in the
multiprogramming system. Only one program at a time can get C.P.U to execute its
instructions (i.e. the machine is running a maximum loop while all the other programs expect
turnaround.
Often multiple programming refers to multi-process execution (at the same time).
This may be misleading because the word "multiprogramming" has already been introduced
to explain this before.

Q3: Why OS need to support a programming language?


The OS provides an interface between the application software and computer hardware such
that only by following the rules and procedure inserted in the operating system can the
operating system interact with the hardware.
The key requirement of the programming language used in an OS is to communicate with the
OS, and the OS may be instructed using the programming language.
If we want to add two integers, we can write a program in C, which is the base language; if you
want to interact with the operating system, you must know at least one language. First, write a
simple program in C, then pass it to the operating system, which performs many operations,
such as calculating and passing data to the buffer, and then displaying the results on the
computer screen.
This entire description implies that the OS needs a Programming Language to perform such
operations such as calculations and so on. As a result, the operating system needs a
programming language to communicate with the CPU in order to perform certain tasks.
Operating systems, for example, communicate with computers to calculate, and file handling
is needed for certain calculations in a computer program. In the Operating System, there are
system programs.
System programs execute on top of the kernel. They are not used to perform useful functions,
but rather to link the kernel to user applications and external devices. System programs
provide device drivers, file systems, communication systems, and system tools such as disk
defragmenters.
As a result, we need a programming language in our operating system.

You might also like