Basics of OS Flashcards

Know the basics in and out

1
Q

What is an Operating System?

A

An Operating System is an interface between computer hardware and computer users.
Manages memory, file, process and controls peripheral devices(printer).

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

What are the different operating systems?

A

Batch, real-time, distributed, time-sharing, Multiprogrammed.

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

What is a socket in OS?

A

A software construct which allows two applications to communicate with each other.

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

Batch Operating System?

A

batching/ grouping the jobs which have the same requirements.

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

Time-Sharing Operating Systems?

A

CPU time is shared among the users.
this operating system is also known as multitasking operating system.

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

Distributed os?

A

multiple computers connected together using a shared connection .

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

What is a kernel

A

It is the core of OS. it acts as an intermediate between the software applications and the hardware

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

types of kernel

A

monolithic, micro, exo , hybrid, Nano

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

monolithic kernel

A

A monolithic kernel in an operating system is a kernel that includes all operating system code in a single executable image.
eg: linux, unix
that means kernel handles all the functions of os.

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

what is a process

A

Program under execution is known as process.

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

What is aging in the Operating System?

A

Aging is a technique which helps in avoiding starvation in the resource scheduling system. Starvation occurs when a process is unable to get the resources it needs to run, even though it is waiting for those resources. Aging works by increasing the priority of a process that has been waiting for a long time. This means that the process is more likely to be scheduled to run, even if it has a lower priority than other processes.

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

What are the different scheduling algorithms in OS?

A

First-Come, First-Served (FCFS) Scheduling, Shortest-Job-Next (SJN) Scheduling, Priority Scheduling, Shortest Remaining Time, Round Robin(RR) Scheduling, Multiple-Level Queues Scheduling.

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

what is a thread

A

it is a light weight process, it allows to divide the process into multiple threads and achieve parallelism.

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

what is context switching.

A

to switch between the tasks rapidly when one of process goes into the wait state.

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

multitasking os, multi-programming os, multi-processing os.

A

multi-tasking OS contains only one cpu and process are allowed to execute only for a particular time quantum.
multi-programming
single cpu with ready queue for process execution.
multi-processing :
has more than one cpu , context switching, time sharing, backup cpu’s.

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

How communication takes place between the user mode and the kernel mode.

A

with the help of IPC(inter process communication)

17
Q

how do we switch from user mode to kernel mode and how do apps interact with the kernel.

A

we use system interrupt to switch from kernel mode to user mode and we use system calls to send messages to kernel to carry out a task

18
Q

what are the major steps that takes place when you switch on your system.

A
  • power supplied to all hardware.
  • boot process, BIOS starts
  • boot device(ssd or hdd) and the boot loader turn on the actual os.
    -MBR lies on the 0th index it starts
19
Q

types of storage

A

primary: register, cache, main memory
secondary : electronic disk, magnetic disk, optical disk and magnetic tapes

20
Q

what is stored in PCB

A

process control block has process id , program counter, process state, priority, register, open file list and open device list.

21
Q

states of a process

A

new, ready, run, wait, termination, suspended wait, suspended ready.