OS Flashcards

1
Q

What is a process in an operating system?

A

A process is a program in execution. It is a container that holds all the information needed to run a program, including its address space, resources, and other relevant data.

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

What is the purpose of the process table in an operating system?

A

operating system table that stores information about each process currently in existence. It contains the necessary details, such as the process’s address space, registers, open files, related processes…

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

How does a multiprogramming system handle multiple active processes?

A

operating system periodically switches between running processes. This is done to ensure fair CPU utilization and prevent a single process from consuming excessive CPU time. The system saves the state of a process when it is suspended and later restarts it from the same state.

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

What is interprocess communication?

A

It allows processes to exchange data and coordinate their actions to accomplish a common goal.

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

What is virtual memory in an operating system?

A

It allows the operating system to store parts of a process’s address space on disk while keeping a portion in main memory.

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

What is a file system in an operating system?

A

It allows users and programs to create, remove, read, and write files. The file system hides the complexities of disk and I/O devices, presenting a uniform interface for interacting with files.

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

How are files organized in a directory hierarchy?

A

directory hierarchy or tree structure. Directories can contain files and other directories, forming a hierarchical arrangement. Path names are used to specify the location of a file within the directory hierarchy, with the root directory as the starting point.

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

What is the purpose of mounting a file system?

A

Mounting a file system allows it to be attached and integrated into the existing directory hierarchy. enables access to files on different storage devices, such as hard disks, CD-ROMs, or USB drives

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

What are special files in UNIX?

A

They are used to represent I/O devices as files.

block special files: model devices with randomly addressable blocks (disk)

character special files: represent devices that handle character streams (printer)

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

How do pipes facilitate communication between processes?

A

are pseudofiles that provide a communication channel between two processes. Process A can write data to a pipe, simulating an output file, while process B can read from the same pipe, treating it like an input file.

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

Input/Output (I/O)

A

Operating systems manage input and output devices such as keyboards, monitors, and printers. There is device-independent I/O software as well as device-specific software called device drivers.

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

Protection (OS)

A

Access to files is controlled through permissions, which are assigned using protection codes. Security issues, including protection against intruders and viruses, are addressed by the operating system.

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

The Shell

A

is a command interpreter, although it is not part of the operating system itself. It serves as the interface between the user and the operating system. The shell interprets user commands, executes programs, and manages input and output redirection

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