Operating Systems Review Flashcards

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/27

flashcard set

Earn XP

Description and Tags

These flashcards encapsulate critical concepts about operating systems and processes, helping students prepare for exams.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

28 Terms

1
New cards

What is virtualization in the context of operating systems?

Virtualization refers to the abstraction of CPU, memory, and storage resources.

2
New cards

What are the different states of a process?

New, Ready, Running, Waiting/Blocked, Terminated.

3
New cards

What is the function of the fork() system call?

It creates a new process by duplicating the calling process.

4
New cards

What does the exec() function do in process management?

It replaces the current process's code with a new program, effectively executing a different program.

5
New cards

What is a Process Control Block (PCB)?

A data structure that contains information about a process, including its state, PID, and memory allocation.

6
New cards

What is the difference between a program and a process?

A program is an on-disk executable file, while a process is a representation of a program in execution in memory.

7
New cards

What occurs during a context switch?

The OS saves the state of the current process and loads the state of the next process to be run.

8
New cards

What is a thread in the context of operating systems?

A thread is a sequential execution stream within a process that shares the process's resources.

9
New cards

What is the purpose of the wait() system call?

It suspends execution of the calling process until one of its child processes exits.

10
New cards

What is a signal in the context of process management?

Signals are a mechanism allowing processes to communicate with each other, often used for notifying events or actions.

11
New cards

What characterizes preemptive multitasking?

The OS can interrupt and pause a running process to switch to another process to ensure fair CPU time allocation.

12
New cards

What does the term 'user mode' refer to?

This is the mode in which user applications run with limited privileges.

13
New cards

What are the advantages of multi-threading?

Increased parallelism, improved CPU utilization, and reduced latency by overlapping I/O operations.

14
New cards

What does pthread_join() do?

It allows one thread to wait for another thread to finish execution and retrieve its return value.

15
New cards

What happens when a process calls exit()?

The process terminates, releasing its resources and signaling its parent.

16
New cards

What is limited direct execution?

A strategy to execute user programs directly on the CPU with restricted access to resources.

17
New cards

How does the OS handle a trap generated by an interrupt or syscall?

The OS saves the current state, switches to kernel mode, handles the trap, and then returns to user mode.

18
New cards

What is the role of the scheduler in an operating system?

To decide which process in the ready queue gets to execute next on the CPU.

19
New cards

What is a thread control block (TCB)?

A data structure similar to a PCB, which contains information specific to a thread.

20
New cards

What does the term 'zombie process' refer to?

A process that has completed execution but still has an entry in the process table because its parent hasn't collected its exit status.

21
New cards

What are the three types of traps in operating systems?

Interrupts, exceptions, and system calls.

22
New cards

What is the purpose of the execvp() function?

To execute a program with a given set of arguments while replacing the calling process's image.

23
New cards

What is an idle state in CPU management?

A state where the CPU is not executing any process.

24
New cards

What prioritizes scheduling decisions in an operating system?

The scheduling policy determines how processes are prioritized for execution by the CPU.

25
New cards

What are the implications of using global variables in multithreading?

They can lead to race conditions if not properly synchronized.

26
New cards

What should be done if a thread is no longer needed?

It should either be joined or detached to properly release resources.

27
New cards

What is a key drawback of the First Come First Served (FCFS) scheduling algorithm?

It can lead to the convoy effect, causing shorter jobs to wait behind longer ones.

28
New cards

In terms of process API, what does the term 'parent process' refer to?

The original process that creates one or more child processes.