Chapter 1 Basic Concepts of an operating system Flashcards

(51 cards)

1
Q

Which steps are performed by the computer when we do booting (When we press power button)

A

(i). It runs various tests to make sure everything is working correctly.
(ii). It checks for new hardware.
(iii). It then starts up the operating system.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Using what program does computer actually start the operating system

A

Bootstrap Loader

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Where does the bootstrap loader reside in our computer and how is it exectued

A

Bootstrap Loader is a program that resides in the computer ROM, EPROM or in non-volatile memory that automatically .executed by the processor when the computer is turned on.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is non volatile memory

A

Non-volatile memory retains data when power is removed. Examples include ROM, PROM, EPROM, EEPROM, and flash.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is EPROM

A

EPROM (Erasable Programmable Read-Only Memory) is a type of non-volatile memory that can be programmed electrically

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Bootstrap Loader is also known as

A

bootstrapping or boot loader.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What happens internally when we open a .c file through turbo editor

A

When we are giving an “open” command from the Turbo editor to open a “.c” program file, at the time turbo editor, an application program will send a request to an operating system for the file. Now operating system will come into the picture. Operating system will interact with the computer hardware, it means here hard disk, because file is stored on hard disk, Then file will be transferred from hard disk to main memory. That means “.c” program file which was requested before is now available and open to process further

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Explain entire bootstrapping procedure

A
  1. Operator powers on
  2. CPU executes bootstrap loader from EPROM
  3. Reads the boot sector of hard disk
  4. Copies operating system from boot sector to main memory
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Explain all things involved for user to communicate to hardware

A

Users ↔ Application ↔ Operating System ↔ Hardware System

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How many managers does OS have and which are they ?

A

Mostly 5 but 4 in some old ones where they don’t have networking capabilities
1. Memory Manager
2. Processor Manager
3. Device Manager
4. File Manager
5. Network Manager

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are the tasks that all the managers of the OS have to perform

A
  1. Supervise the status of the resources continuously. It means each manager has to check the resources are free or busy. Here resources can be memory, CPU, any file or any device.
  2. Design the rules which determine who gets what, when and how much. Each manager will apply the policy which will decide who will get
    access to which resource, when and for how much duration access is allowed.
  3. Allocate the resource Each manager will allocate the resource when it is available.
  4. Deallocate the resource. When the usage of a resource is completed or maximum time to use the resource has elapsed, each manager will just take the resource back from whom it was given. So after the usage resource will be
    deallocated by the manager.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Who is responsible to monitor the allocations and deallocations of main memory

A

Memory Manager

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What will will memory manager do when a request comes in for memory

A
  1. Check if there is enough space in main memory (RAM) to full fill the request
  2. If Yes, then allocate
  3. If No, then reject the request that is why sometimes we get error like “Not Enough Memory!”
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How dose memory manager handle multiuser environment

A

In multiuser environment memory manager keeps a table which indicates which user is using which portion of the memory. So when the user task is completed, the memory which is allocated to him will be deallocated.
Memory manager will also take care that not a single job access the portion of the main memory where operating system is loaded.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the job of processor manager

A

Processor manager takes the decision that how Central Processing Unit (CPU) should be allocated.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Processor Manager has what 2 schedulers and what are their jobs

A
  1. Job scheduler
    is the high-level portion of the processor manager, which is responsible for accepting or rejecting the jobs.
  2. Processor scheduler
    is the low-level portion of the processor
    manager, which is responsible for deciding which process will get the processor and for how much duration.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Device manager allocates various devices in efficient way by using various _________

A

scheduling policies

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Which manager is responsible for handling compilers and assemblers in our computer

A

File Manager

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Explain how all the managers will work together when we execute Dos command DIR

A

(DOS, or Disk Operating System, refers to a family of operating systems that provide a command-line interface for interacting with a computer.)

  1. User will press the keys D, I, R on keyboard. When these keys are being pressed at that time the electrical signals will be generated and from that device manager form the command “DIR” and send it to the processor manager.
  2. The processor manager validates it and with the help of the device manager user will be able to see it on the screen.
  3. Now processor manager will check for the file associated with the command, whether it is in the main memory or in the hard disk.
  4. If it is in the main memory, then it will be executed and processor manager sends output to the device manager, with the help of it the output will be visible on the monitor.
  5. If the file is not in main memory, then file manager will calculate its exact location on hard disk and sends this information to device manager.
  6. Now device manager will retrieve the file from the hard disk and gives it to the memory manager. Memory manager will calculate the exact location for the file in memory and will store the file at that location.
  7. Once the file is located then it will be executed by processor manager and then with the help of the device manager, output will be displayed on the screen.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

What are some of the different types of OS

A

Batch OS
Distributed OS
Multitasking OS
Network OS
Real-Time OS
Mobile OS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

Explain Batch OS

A

This type of operating system does not interact with the computer directly. There is an operator which takes similar jobs having the same requirements and groups them into batches. It is the responsibility of the operator to sort jobs with similar needs. Batch Operating System is designed to manage and execute a large number of jobs efficiently by processing them in groups.

22
Q

Advantages of Batch OS

A
  1. Multiple users can share the batch systems.
  2. The idle time for the batch system is very little.
  3. It is easy to manage large work repeatedly in batch systems.
23
Q

Disadvantages of Batch OS

A
  1. CPU is not used efficiently. When the current process is doing IO, the CPU is free and could be utilized by other processes waiting.
  2. The other jobs will have to wait for an unknown time if any job fails.
  3. In a batch operating system, average response time increases as all processes are processed one by one.
24
Q

Examples of Batch OS

A

Payroll System, Bank Statements

25
What is Multi-Programming Operating system
Multiprogramming Operating Systems can be simply illustrated as more than one program is present in the main memory and any one of them can be kept in execution. This is used for better utilization of resources.
26
Explain Multi-tasking/Time-sharing Operating systems
It is a type of Multiprogramming system with every process running in round robin manner. Each task is given some time to execute so that all the tasks work smoothly. Each user gets the time of the CPU as they use a single system. These systems are also known as Multitasking Systems. The task can be from a single user or different users. The time that each task gets to execute is called quantum. After this time interval is over, the OS switches over to the next task.
27
Explain Multi-Processing Operating System
A Multi-Processing Operating Systems a type of Operating System in which more than one CPU is used for the execution of resources. It betters the throughput of the System.
28
Explain Multi-User Operating Systems
These systems allow multiple users to be active at the same time. This system can be either a multiprocessor or a single processor with interleaving.
29
Explain Distributed Operating System
These types of operating systems are a recent advancement in the world of computer technology and are being widely accepted all over the world and, that too, at a great pace. Various autonomous interconnected computers communicate with each other using a shared communication network. Independent systems possess their own memory unit and CPU. Systems. These systems' processors differ in size and function. The major benefit of working with these types of operating systems is that it is always possible that one user can access the files or software which are not present on his system but on some other system connected within this network, i.e., remote access is enabled within the devices connected to that network.
30
Explain Network Operating System
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 allow shared access to files, printers, security, applications, and other networking functions over a small private network. One more important aspect of Network Operating Systems is that all the users are well aware of the underlying configuration, of all other users within the network, their connections, etc., and that’s why these computers are popularly known a tightly coupled systems.
31
Explain Real time Operating System
These types of OSs serve 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 time requirements that are very strict like missile systems, air traffic control systems, robots, etc.
32
Explain Mobile OS
Mobile operating systems are designed specifically for mobile devices such as smartphones and tablets. Examples of such operating systems are Android and iOS. These operating systems manage the hardware and software resources of the device, providing a platform for running applications and ensuring a seamless user experience.
33
A process is (a) Program in High level language kept on disk (b) Contents of main memory (c) A Program in execution (d) A job in secondary memory
C
34
A computer cannot "boot" if it does not have the (a) Compiler (b) Loader (c) Operating System (d) Assembler
C
35
Memory (a) is a device that performs a sequence of operations specified by instructions in memory. (b) is the device where information is stored (c) is a sequence of instructions (d) is typically characterized by interactive processing time-slicing and of the CPU's time to allow quick response to each user.
B
36
What is the name given to the organized collection of software that controls the overall operation of computer? (a) Working system (b) Peripheral system (c) Operating System (d) Controlling System
C
37
The Operating System manages (a) Memory (b) Processor (c) Disk and I/O devices (d) All of the above
D
38
The Operating System of a computer serves as a software interface between the user and the (a) Hardware (b) Peripheral (c) Memory (d) Screen
A
39
In which OS, the response time is very critical? (a) Multitasking (b) Batch (c) Online (d) Real-time
D
40
Who is the in-charge of the main memory? (a) Processor Manager (b) Device Manager (c) File Manager (d) Memory Manager
D
41
Who is responsible for the allocation of the processor? (a) Processor Manager (b) Device Manager (c) File Manager (d) Memory Manager
A
42
Who is responsible for the allocation of the file? (a) Processor Manager (b) Device Manager (c) File Manager (d) Memory Manager
C
43
Who is responsible for the allocation of the device? (a) Processor Manager (b) Device Manager (c) File Manager (d) Memory Manager
B
44
Which OS was using punched card reader? (a) Real-time (b) Batch (c) Interactive (d) Hybrid
B
45
Hybrid system is the combination of (a) Real-time, Batch (b) Batch, Interactive (c) Interactive, Real-time (d) None of the above
B
46
Interactive System is also known as (a) Time-Management System (b) Time-Sharing System (c) Timely System (d) None of the above
B
47
In which OS user can interact via command with OS? (a) Real-time (b) Batch (c) Interactive (d) Hybrid
C
48
Which manager is responsible for the sharing of network resources? (a) File Manager (b) Memory Manager (c) Network Manager (d) Device Manager
C
49
Which scheduler is responsible for accepting or rejecting the job? (a) Process scheduler (b) Job Scheduler (c) (a) and (b) both (d) None of the above
B
50
Which scheduler decides that which process will get processor and for how much duration? (a) Process scheduler (b) Job Scheduler (c) (a) and (b) both (d) None of the above
A
51
When a computer is first turned on or restarted, from the following which loader is first executed? (a) Compiler and Go loader (b) BIOS loader (c) Bootstrap loader (d) Relating loader
C