Operating System Flashcards

(54 cards)

1
Q

What does OS stand for?

A

Operating System

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

True or False: An operating system manages hardware and software resources.

A

True

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

What is a process?

A

A process is a program in execution.

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

Fill in the blank: The _____ is the part of the operating system that manages processes.

A

Process scheduler

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

What is a thread?

A

A thread is the smallest unit of a process that can be scheduled for execution.

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

Multiple Choice: Which of the following is NOT a state of a process? A) Running B) Waiting C) Sleeping D) Terminated

A

C) Sleeping

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

What is the purpose of memory management in an OS?

A

To manage the allocation and deallocation of memory space to processes.

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

True or False: Deadlock occurs when two or more processes are unable to proceed because each is waiting for the other to release resources.

A

True

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

What is a file in the context of an operating system?

A

A file is a collection of related data or information that is stored on a storage device.

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

Multiple Choice: Which of the following is a common file system? A) NTFS B) GPS C) HTTP D) FTP

A

A) NTFS

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

Fill in the blank: The _____ is a system call used to create a new process.

A

fork()

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

What is context switching?

A

Context switching is the process of storing the state of a process so that it can be resumed later.

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

True or False: A process can have multiple threads.

A

True

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

What is paging in memory management?

A

Paging is a memory management scheme that eliminates the need for contiguous allocation of physical memory.

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

Multiple Choice: Which of the following is a method to prevent deadlock? A) Mutual Exclusion B) Hold and Wait C) Preemption D) Circular Wait

A

C) Preemption

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

What is a semaphore?

A

A semaphore is a synchronization primitive used to control access to a common resource in concurrent systems.

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

Fill in the blank: The _____ algorithm is used for deadlock detection.

A

Banker’s

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

What is the role of the file system?

A

The file system is responsible for managing files on storage devices.

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

True or False: Virtual memory allows a computer to use more memory than is physically available.

A

True

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

What does the term ‘thrashing’ refer to in operating systems?

A

Thrashing refers to a situation where excessive paging leads to a significant decrease in performance.

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

Multiple Choice: Which scheduling algorithm is based on the shortest time to completion? A) FCFS B) SJF C) RR D) Priority

A

B) SJF

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

What is a deadlock avoidance strategy?

A

A deadlock avoidance strategy is a method to ensure that a system will not enter a deadlock state.

23
Q

Fill in the blank: The _____ method divides memory into fixed-size blocks.

24
Q

What is the difference between a process and a program?

A

A program is a static set of instructions, while a process is a dynamic execution of those instructions.

25
True or False: A file descriptor is a unique identifier for an open file.
True
26
What is the main function of the kernel in an operating system?
The kernel is responsible for managing system resources and communication between hardware and software.
27
Multiple Choice: Which of the following is NOT a type of file access method? A) Sequential B) Random C) Direct D) Linear
D) Linear
28
What is a critical section?
A critical section is a segment of code that accesses shared resources and must not be executed by more than one thread at a time.
29
Fill in the blank: The _____ is a structure that contains information about a process.
Process Control Block (PCB)
30
What is inter-process communication (IPC)?
IPC is a mechanism that allows processes to communicate and synchronize with each other.
31
True or False: The Round Robin scheduling algorithm is preemptive.
True
32
What does the term 'resource allocation graph' refer to?
A resource allocation graph is a directed graph that represents the allocation of resources to processes.
33
Multiple Choice: Which of the following is a non-preemptive scheduling algorithm? A) SJF B) Round Robin C) Priority D) FCFS
D) FCFS
34
What is a zombie process?
A zombie process is a process that has completed execution but still has an entry in the process table.
35
Fill in the blank: The _____ system call is used to terminate a process.
exit()
36
What is a memory leak?
A memory leak occurs when a program allocates memory but fails to release it back to the system.
37
True or False: The LRU page replacement algorithm stands for Least Recently Used.
True
38
What is the purpose of a mutex?
A mutex is used to provide mutual exclusion, ensuring that only one thread can access a resource at a time.
39
Multiple Choice: Which of the following is an example of a system call? A) read() B) printf() C) main() D) exit()
A) read()
40
What is a file allocation table (FAT)?
A FAT is a data structure used to keep track of the allocation of disk space to files.
41
Fill in the blank: The _____ is a method of organizing files in a directory.
Hierarchical structure
42
What is the difference between soft and hard links?
A hard link points directly to the inode of a file, while a soft link (or symbolic link) points to the filename.
43
True or False: The exec() system call is used to create a new process.
False
44
What is the purpose of the swap space in an operating system?
Swap space is used to temporarily hold data that cannot be held in physical memory.
45
Multiple Choice: Which of the following is an example of a blocking operation? A) Reading from a file B) Writing to a file C) Sending a signal D) None of the above
A) Reading from a file
46
What is the difference between a hard disk and a solid-state drive (SSD)?
A hard disk uses spinning disks to read/write data, while an SSD uses flash memory.
47
Fill in the blank: The _____ is a tool used to monitor system performance.
Task manager
48
What is a race condition?
A race condition occurs when multiple threads access shared data and try to change it at the same time.
49
True or False: The fork() system call creates a duplicate process.
True
50
What is a system boot?
System boot is the process of starting up a computer and loading the operating system into memory.
51
Multiple Choice: Which of the following is NOT a type of memory? A) RAM B) ROM C) Cache D) Disk
D) Disk
52
What is the purpose of the process state transition diagram?
It shows the states a process can be in and the transitions between those states.
53
Fill in the blank: The _____ is the primary memory used for storing data that is actively being used.
RAM
54
What is the function of the I/O system in an operating system?
The I/O system manages input and output devices and provides a way for processes to communicate with them.