Operating Systems & Compilation: Lexical Analysis, Memory Management, Scheduling, and File Systems

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

1/50

flashcard set

Earn XP

Description and Tags

Comprehensive vocabulary flashcards covering compiler lexical analysis, memory management, I/O handling, CPU scheduling policies, and Unix file systems.

51 Terms

1
New cards

Analyse Lexicale (Lexical Analysis)

The compilation phase that processes a source program composed of character strings to identify lexical entities (tokens), eliminate whitespace and comments, codify entities, and construct the symbol table (table des symboles).

2
New cards

Entités Lexicales (Lexical Entities)

The fundamental token categories recognized by a lexical analyzer, specifically: identifiers, reserved keywords (mots clés), constants, and separators.

3
New cards

Automate d'États Finis Déterministe (Deterministic Finite Automaton)

A 5-tuple formal system A=⟨T,N,S,F,I⟩A = \langle T, N, S, F, I \rangle, where TT is the set of terminals, NN is the set of states, SS is the initial state, FF is the set of final states, and II is the transition function mapping an entity string to either true or false.

4
New cards

Matrice de Transition (Transition Matrix)

The memory representation of an automaton where each row corresponds to an automaton state, each column corresponds to an input terminal symbol, and entries contain destination states.

5
New cards

Mémoire Centrale (Main Memory)

A primary storage resource structured as a finite sequence of addressable components called words (mots), serving as the central medium through which the processor communicates with external units.

6
New cards

Octet (Byte)

The smallest individually addressable unit of storage in computer memory.

7
New cards

Gestionnaire de la Mémoire (Memory Manager)

The operating system component responsible for tracking free and occupied memory areas, allocating memory to requesting processes, deallocating memory upon process termination, and managing overlay and swapping.

8
New cards

Réallocation (Relocation)

The dynamic memory management procedure of shifting programs within memory to create contiguous free space for incoming processes while recomputing address references via base registers or relative program counter displacements (@x=CO+deˊplacement@x = CO + \text{déplacement}).

9
New cards

Adresse Symbolique (Symbolic Address)

User-defined labels and variable identifiers representing data and instruction names directly within the source code (e.g., int compteur).

10
New cards

Adresse Logique (Logical Address)

An intermediate address generated during compilation by the naming system relative to the start of a program's address space (e.g., the 50th50^{\text{th}} word).

11
New cards

Adresse Physique (Physical Address)

The exact hardware location in physical memory hardware accessed during runtime execution.

12
New cards

MMU (Memory Management Unit)

A hardware device that translates logical addresses generated by the CPU into physical addresses at runtime using the base address: @physique=registre de base+@logique@\text{physique} = \text{registre de base} + @\text{logique}.

<p>A hardware device that translates logical addresses generated by the CPU into physical addresses at runtime using the base address: $$@\text{physique} = \text{registre de base} + @\text{logique}$$.</p>
13
New cards

Va-et-vient (Swapping)

A mechanism that moves entire memory blocks or processes between secondary storage (swap disk) and main memory to accommodate more active processes than can fit simultaneously.

14
New cards
<p>Stratégies d'Allocation (Memory Allocation Strategies)</p>

Stratégies d'Allocation (Memory Allocation Strategies)

The taxonomy of techniques for placing programs in main memory, broadly classified into Contiguous Allocation (Mono Bloc, Partitions Multiples), Non-Contiguous Allocation (Pagination, Segmentation, Segmentation Paginée), and Virtual Memory.

15
New cards

Mono Bloc (Single-Partition Allocation)

A contiguous memory strategy dividing main memory into two regions—one for the resident OS and one for a single user process—enabling only one active process at any given moment.

16
New cards

Partitions Fixes (Fixed Partitions)

A static contiguous partitioning scheme established at system initialization where memory is divided into fixed-size regions (equal or unequal), tracked via a Partition Description Table (PDT).

17
New cards

Partitions Variables (Variable / Dynamic Partitions)

A contiguous allocation scheme where memory is divided dynamically on demand, allocating a partition exactly matched to the process size and reclaiming it upon completion.

18
New cards

Fragmentation Interne (Internal Fragmentation)

Wasted space occurring when the allocated memory partition is larger than the memory requested by the process, leaving unused memory inside the allocated block.

19
New cards

Fragmentation Externe (External Fragmentation)

The phenomenon where sufficient total free memory exists to satisfy an allocation request, but it is dispersed across multiple non-contiguous small free holes.

20
New cards

Compactage (Compaction)

A CPU-intensive recovery technique that shifts allocated memory blocks toward one end of memory to merge dispersed free fragments into one large continuous free block.

21
New cards

First-fit

A placement algorithm that scans free memory from the beginning and allocates the first encountered block that is sufficiently large.

22
New cards

Next-fit

A variation of First-fit that starts searching for a suitable free block starting from the location of the last allocated block rather than from the beginning.

23
New cards

Best-fit

A placement algorithm that searches the entire list of free spaces to allocate the smallest block that is large enough to satisfy the request.

24
New cards

Worst-fit

A placement algorithm that searches memory to allocate the largest available free block, intending to leave a remaining free hole as large as possible.

25
New cards

Pagination (Paging)

A non-contiguous allocation strategy dividing a program's logical address space into fixed-size Pages and physical memory into identical fixed-size blocks called Frames.

26
New cards

Table de Pages (Page Table)

A mapping table containing the base physical frame address for every logical page index pp, used alongside page offset dd to calculate the physical memory address.

27
New cards

Segmentation

A non-contiguous memory management technique reflecting user program structure by assigning variable-length logical units (e.g., code, stack, data) into separate blocks tracked by Base and Limit pairs in a segment table.

28
New cards

Segmentation Paginée (Paged Segmentation)

A hybrid memory allocation strategy where programs are decomposed into segments and each segment is subdivided into uniform pages, eliminating external fragmentation while preserving logical modularity.

29
New cards

Mémoire Virtuelle (Virtual Memory)

An execution technique extending physical memory using disk storage (MV=MC+SWAP\text{MV} = \text{MC} + \text{SWAP}), allowing processes to execute when only actively referenced portions reside in main memory.

30
New cards

Bit de Validation / Validité (Valid/Invalid Bit)

A field in a page table entry indicating whether the associated page is currently loaded in main memory (11 or vv) or resides on secondary storage (00 or ii).

31
New cards

Défaut de Page (Page Fault)

A hardware interrupt raised when a running process references a memory page that is currently marked invalid (not loaded in physical memory).

32
New cards

Anomalie de Belady (Belady's Anomaly)

The counterintuitive phenomenon observed under the FIFO page replacement algorithm where increasing the number of physical frames results in an increased number of page faults.

33
New cards

LRU (Least Recently Used)

A page replacement algorithm that evicts the page that has not been referenced for the longest period of time (the page whose last reference is farthest to the left).

34
New cards

Algorithme de la Seconde Chance (Second Chance / Clock Algorithm)

A FIFO-based page replacement policy using a circular queue and a reference bit (Bit_RBit\_R); if a page has Bit_R=0Bit\_R = 0, it is evicted, but if Bit_R=1Bit\_R = 1, the bit is cleared to 00 and the page is spared.

35
New cards
<p>Modes de Pilotage des E/S (I/O Control Modes)</p>

Modes de Pilotage des E/S (I/O Control Modes)

Methods used by an operating system to manage I/O transfers, classified into Direct Synchronous (monoprogrammed busy waiting), Direct Asynchronous (multiprogrammed interrupt-driven), and Indirect DMA.

36
New cards

DMA (Direct Memory Access)

An indirect I/O management method employing a specialized hardware controller capable of transferring data blocks directly between main memory and peripherals without continuous CPU intervention.

37
New cards

Contrôleur d'E/S (Device Controller)

A hardware interface between the CPU/memory and peripheral devices containing three key registers: Control Register (RC), Status Register (RE), and Data Register (RD).

38
New cards

Scheduling (Ordonnancement)

The policy and programmatic organization by which the operating system Scheduler allocates CPU time among competing executable processes.

39
New cards

Préemption (Preemption)

The operating system capability to forcibly interrupt a running process and reassign the processor to another process prior to completion.

40
New cards

Round Robin (Tourniquet)

A preemptive scheduling policy where the ready queue is treated as a circular FIFO structure and each process is sequentially allocated the CPU for a predefined time slice called a Quantum.

41
New cards

Watchdog (Scheduling)

A mechanism in multi-level feedback scheduling where, if a process exhausts its quantum and all queues are empty, process counters are set to negative values to prevent counter expiration and avoid invoking the end-of-quantum task.

42
New cards

Inode

A Unix file system data structure identified by a unique index number that stores all metadata, access permissions, ownership, timestamps, and block addresses for a specific file.

43
New cards

Lien Physique (Hard Link)

A directory reference pointing directly to an existing file's inode on the same file system, sharing data blocks and unusable for directories or special files.

44
New cards

Lien Symbolique (Symbolic Link)

A special file containing the pathname to another file or directory, functioning as an indirect shortcut that can cross different file systems and partitions.

45
New cards

Descripteur de Fichier (File Descriptor)

A non-negative integer indexing a process-specific table of open files; indices 00, 11, and 22 are automatically reserved for Standard Input, Standard Output, and Standard Error.

46
New cards

Attributs d'un Fichier (File Attributes Format)

The sequence of fields displayed by the ls -l command describing file type, permissions (user, group, others), hard link count, owner, owning group, size in bytes, modification date/time, and name.

<p>The sequence of fields displayed by the <code>ls -l</code> command describing file type, permissions (user, group, others), hard link count, owner, owning group, size in bytes, modification date/time, and name.</p>
47
New cards
<p>Permissions Octales (Octal Permissions)</p>

Permissions Octales (Octal Permissions)

A base-8 numerical representation of file access rights calculated by summing binary weights: read (r=4r = 4), write (w=2w = 2), and execute (x=1x = 1) across owner, group, and others.

48
New cards

umask

A command and environment mask defining permission bits to subtract from default permissions (666666 for regular files, 777777 for directories); a default mask of 022022 yields permissions 644644 and 755755.

49
New cards

Système de Fichiers Journalisé (Journaled File System)

A file system (e.g., ext3, reiserFS, xfs) that records intended operations in a dedicated transaction log (journal) before committing them, enabling rapid error checking and recovery after abrupt system crashes.

50
New cards

Point de Montage (Mount Point)

A directory within the Unix root hierarchy (//) to which an accessible storage partition or volume is attached using the mount command.

51
New cards

/etc/fstab

A system configuration file consisting of 6 columns (partition name, mount point, file system type, mount options, dump backup flag, and fsck check order) that automates filesystem mounting during boot.