Operating Systems Processes Flashcards

1
Q

What are operating system services?

A

They provide an environment for execution of programs.

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

Example of a system call?

A

fork(), exec(), wait(), exit()

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

What is a process?

A

An instance of a program in execution.

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

Define process control block (PCB).

A

Data structure containing process info like state, ID, registers.

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

What are system programs?

A

Programs that provide basic non-kernel functionalities.

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

Purpose of system programs?

A

Support system operation like file manipulation, status info.

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

Example of process state?

A

Ready, Running, Waiting, Terminated.

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

Name a service related to I/O operations.

A

Providing a uniform interface for device communication.

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

What OS service handles errors?

A

Error detection – ensures system integrity by monitoring and responding to errors.

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

Which OS service is responsible for program execution?

A

Loads programs into memory and runs them.

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

What is the purpose of a communication service in OS?

A

Allows processes to exchange information, often using messages or shared memory.

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

What does resource allocation service do?

A

Allocates and tracks CPU, memory, and I/O resources.

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

How does an OS ensure security?

A

By restricting access and protecting data from unauthorized users.

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

What does mkdir do in Linux?

A

Creates a new directory.

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

What does rm -r do?

A

Deletes a directory and all its contents.

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

What is the purpose of ls?

A

Lists files and directories.

17
Q

What does cd do?

A

Changes the current directory.

18
Q

What does cp do?

A

Copies files or directories.

19
Q

What is the mv command used for?

A

Moves or renames files or directories.

20
Q

What does touch do?

A

Creates an empty file or updates a file’s timestamp.

21
Q

What does cat do?

A

Displays the contents of a file.

22
Q

What does kill do?

A

Terminates a process using its PID.

23
Q

What is top used for?

A

Displays running processes and system usage.