CS2005 - Lecture 9 - Operating Systems Structures and Processes

0.0(0)
studied byStudied by 2 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/11

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

12 Terms

1
New cards

Key services provided by an OS

UI: CLI, GUI

Program Execution: Loads and runs programs

I/O Operations: Manages devices

File-System Manipulation: Creates/deletes files, enforces permissions

Communication: Shared memory or message passing between processes

Error Detection: Handles hardware/software errors

Resource Allocation: Manages CPU, memory

Accounting & Security: Tracks usage and enforces access control.

2
New cards

System call

A programming interface to request OS services (e.g. open(), fork()).

3
New cards

Parameters passed to system calls

Via registers, memory blocks or the stack.

4
New cards

Windows system calls

CreateProcess(), ReadFile().

5
New cards

Unix system calls

fork(), read().

6
New cards

Parts of a process

Text: Code + program counter

Stack: Temporary data

Data: Global variables

Heap: Dynamically allocated memory.

7
New cards

Process states

New: Created

Ready: Waiting for CPU

Running: Executing

Waiting: Blocked

Terminated: Finished

8
New cards

Stored in a PCB

Process state, PC, registers, scheduling info, memory limits, I/O status.

9
New cards

Key queues in process scheduling

Job Queue: All processes

Ready Queue: Processes in memory ready to execute

Device Queue: Processes waiting for I/O

10
New cards

Short-term scheduler

Selects next process for CPU (frequent, fast).

11
New cards

Long-term scheduler

Controls multiprogramming by loading processes into memory (infrequent, slow).

12
New cards

Process Lifecycle example

Ready -> Running: Dispatched by short-term scheduler

Running -> Waiting: I/O request or event wait

Waiting -> Ready: I/O completion

Running -> Terminated: Process exits.

Explore top flashcards

Medical terma quiz 4
Updated 409d ago
flashcards Flashcards (44)
Skull
Updated 5h ago
flashcards Flashcards (47)
Integrals
Updated 665d ago
flashcards Flashcards (41)
Ch13-14 Civics
Updated 1034d ago
flashcards Flashcards (45)
List 35
Updated 1098d ago
flashcards Flashcards (35)
Medical terma quiz 4
Updated 409d ago
flashcards Flashcards (44)
Skull
Updated 5h ago
flashcards Flashcards (47)
Integrals
Updated 665d ago
flashcards Flashcards (41)
Ch13-14 Civics
Updated 1034d ago
flashcards Flashcards (45)
List 35
Updated 1098d ago
flashcards Flashcards (35)