Operating Systems

0.0(0)
Studied by 8 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/48

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 2:25 AM on 3/23/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

49 Terms

1
New cards

Operating Systems

A program that manages hardware and provides other programs with an environment to run in

2
New cards

Process

program in execution

3
New cards

OS Kernel

Central component of O.S that performs the most important OS tasks

4
New cards

system call

request for service from an application to the operating system

5
New cards

multitasking

technique to fake simuntaneous processes on a single CPU core

6
New cards

virtual memory

technique to fake larger RAM memoy with hard disk

7
New cards

Interrupt

a signal about important event that requires immediate attention

8
New cards

Drivers

small program that handles communication between operating system and devices

9
New cards

files

related data stored in hardisk on one name

10
New cards

file system

collection of data about all files on the computer, including physical coordinates of files on hardisk

11
New cards

operating system api

set of tools the O.S providers for programmers to use, making it convienent, Extra level of abstraction

12
New cards

Logical Disk Partition

portion of hardisk described in a seperate file system

13
New cards

Networking Adaptor

A piece of hardware that recieves and sends data physically through the network

14
New cards

Protocol

bunch of rules on how to send/recieve and understand data

15
New cards

Process Control Block (PCB)

record for a single process maintained by the operating system

16
New cards

PID

Process Identification Number, all unique

17
New cards

context switch

sequence of steps that CPU goes through to switch execution from one process to another

18
New cards

Heap

process that does dynamic memory allocation

19
New cards

Stack

All data belonging to function

20
New cards

Process States

New State: process created, not ready to do anything
Ready Queue: collection of processes ready and willing to use CPU
Running: Process is using CPU
Waiting: I/O queue, collection of processes to use corresponding I/O device, does not wait to use CPU
Terminated: PCB remains, process terminated

21
New cards

POSIX

set of standards that define how Unix-like operating systems should behave to maintain compatibility across systems.

22
New cards

FORK

command allows us to utilize more than one core on computer

23
New cards

EXEC(“executable_name”)

erases all process content and loads instruction and data from executable file mentioned in parameter

24
New cards

exit(0)

Way to exit, the number inside is a status code

25
New cards

wait()

pause the process until it’s child terminates

26
New cards

zombie process

process that call exit but whos parent hasn’t called wait yet

27
New cards

orphan process

process when parent has exited

28
New cards

IPC (Inter-Process Communication)

Tools for allowing programs to talk to each other:

Message Passing, Shared Memory

29
New cards

Message Passing

OS sends the message each time to ask the O.S you need a system call
- slower

+ easier to program correctly

+ can be used by processes on different computers (networking)

30
New cards

Shared Memory

O.S establishes shared memory (shared RAM) between different processes and can read/write and vice versa. Only need one system call

31
New cards

Web Server

program that manages web pages, manages request from browsers

32
New cards

DNS server

gets URL and returns corresponding IP address

33
New cards

Networking Ports

unique numeric identifiers given to any process that wants to use the network

34
New cards

Well known networking ports

networking ports reserved for specific purpose, predetermined purpose

35
New cards

networking socket

combo of IP addresses and networking ports

36
New cards

Thread (thread of execution)

independent execution of program code from a seperate program counter

37
New cards

Ready Queue

collection of processes ready and willing to use CPU

38
New cards

What do threads share?

  • Text section (program code)

  • Data section (global & static variables)

  • Heap (dynamically allocated memory, e.g. malloc, new)

39
New cards

What don’t threads share?

  • Stack

  • Stack pointer / registers

  • Local variables (function calls, etc.)

40
New cards

Thread vs Processes

Threads are:

  • Fast to create and delete

  • Memory efficient (copy nothing, created inside process)

  • Context switching is faster

  • Shared memory by default

Processes are:

  • Can run exec()

  • Fault-independent

41
New cards

Fault independence

One process doing something bad doesn’t mean other processes are bad

42
New cards

Kernel Thread

threads managed with O.S helps, the O.S knows about that and can manage them seperatly and efficiently.

43
New cards

User Threads

Threads managed without the help of O.S → fast to manage, cannot use multiple cores, one thread books all (faster than kernel threads)

44
New cards

Hardware Threads

Amount of threads your CPU run simultaneously

45
New cards
46
New cards

Thread Local storage

A tool that allows you to create a variable that is global but still private for each thread

47
New cards
48
New cards

Thread pool

Maximum number of threads created then put to sleep, when a user request arrives you wake up one of the created threads, once finished using you freeze it and return it to thread pool.

49
New cards

Context Switch

 A sequence of steps to change CPU from running one process to running another process.

  • Pause process 1

  • Save all general purpose CPU register and PC of P1 (saving context)

  • Load all general purpose CPU register and PC of P2 (loading next)

  • Resume Process 2 (Slow because it accesses information from RAM memory)

Explore top notes

note
Chapter 7 - Enzymes
Updated 1279d ago
0.0(0)
note
Conformity
Updated 542d ago
0.0(0)
note
Riñón
Updated 1202d ago
0.0(0)
note
Chapter 7 Vocab
Updated 1243d ago
0.0(0)
note
Chapter 7 - Enzymes
Updated 1279d ago
0.0(0)
note
Conformity
Updated 542d ago
0.0(0)
note
Riñón
Updated 1202d ago
0.0(0)
note
Chapter 7 Vocab
Updated 1243d ago
0.0(0)