Operating System Flashcards

(21 cards)

1
Q

What is an Operating System (OS)?

A

System software that manages computer hardware, software resources, and provides common services for computer programs

Examples include Windows, Linux, macOS, and Android.

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

List the key functions of an Operating System.

A
  • Process Management
  • Memory Management
  • File Management
  • Device Management
  • Security and Access Control

These functions are essential for managing resources and ensuring system security.

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

What are the types of Operating Systems?

A
  • Batch OS
  • Time-Sharing OS
  • Real-Time OS (RTOS)
  • Distributed OS

Each type serves different purposes and user needs.

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

Define Kernel in the context of an Operating System.

A

The core part of the OS, responsible for low-level operations

Types of kernels include Monolithic and Microkernel.

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

What is a Process?

A

A program in execution

Process states include New, Running, Waiting, and Terminated.

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

What is Context Switching?

A

The process of saving and restoring the state of a process

It allows multiple processes to share the CPU effectively.

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

What is Virtual Memory?

A

Allows the OS to use disk space as ‘RAM’ for large applications

It helps in managing memory more efficiently.

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

What are the components of a File System?

A
  • Files
  • Directories
  • Metadata

These components help organize and store data.

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

What is the role of Device Drivers?

A

Software that allows the OS to interact with hardware devices

Examples include printer drivers, graphics drivers, and network drivers.

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

Differentiate between CLI and GUI.

A
  • CLI: Text-based interface
  • GUI: Visual interface with windows, icons, and menus

CLI is fast and scriptable, while GUI is user-friendly and intuitive.

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

What is Authentication in Operating System security?

A

Verifying user identity

It is a critical step in ensuring system security.

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

What does Authorization refer to?

A

Granting access to resources

It determines what resources a user can access after authentication.

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

What is Spooling?

A

Managing output tasks via queues

An example is a printer spooler that queues print jobs.

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

What is the purpose of Process Scheduling?

A

Determines which process runs at a given time

It is essential for multitasking and resource management.

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

What is Preemptive Scheduling?

A

The OS can interrupt a running process at any time

This allows for better resource allocation among processes.

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

What is a Semaphore?

A

A synchronization mechanism to control access to shared resources

It helps in handling competition for resources.

17
Q

What is the Memory Hierarchy?

A
  • Cache
  • RAM
  • Virtual Memory

This hierarchy is crucial for efficient memory management.

18
Q

What is Bootstrapping?

A

The process of loading the OS from storage into RAM

It begins with the boot loader.

19
Q

What are the process states?

A
  • New
  • Running
  • Waiting
  • Terminated

These states represent the lifecycle of a process.

20
Q

What is the User Interface in an Operating System?

A

Allows users to interact with the system

It can be a Command Line Interface (CLI) or a Graphical User Interface (GUI).

21
Q

What is Deadlock?

A

A condition where two or more processes cannot proceed because each is waiting for the other to release resources

Classic examples include the railroad scenario.