CO2101: OS & Networking - Week1

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

1/28

flashcard set

Earn XP

Description and Tags

Comprehensive vocabulary flashcards covering introductory operating system concepts, process lifecycles, memory segments, system calls, and Linux shell scripting from Tutorial 1 and Lecture 1.

29 Terms

1
New cards

Kernel

The core component of the operating system that directly controls hardware and manages critical system resources, including processes, memory allocation, files, I/O devices, and system security.

2
New cards

Operating System (OS)

System software that manages hardware resources and provides fundamental services for user applications, functioning as a resource manager, service provider, and hardware interface.

3
New cards

Terminal

The graphical application window that provides a text-based user interface for entering commands, viewing output, and interacting with a command interpreter.

4
New cards

Shell

A program running inside a terminal (such as Bash, Zsh, or Ksh) that interprets user commands, manages shell scripting features, launches programs, and requests operating system services.

<p>A program running inside a terminal (such as Bash, Zsh, or Ksh) that interprets user commands, manages shell scripting features, launches programs, and requests operating system services.</p>
5
New cards

Secure Shell (SSH)

A network protocol and utility that provides an encrypted, authenticated connection to log into and run commands on a remote system (such as the university server Xanthus).

6
New cards

pwd

A Linux shell command ('print working directory') that outputs the absolute path of the current working directory.

7
New cards

touch

A Linux shell command used to create a new, empty file or update the access and modification timestamps of an existing file.

8
New cards

grep

A command-line utility used to search files or input streams for lines that match a specified pattern or regular expression.

9
New cards

wc

A command-line utility ('word count') that displays the number of lines, words, and bytes contained in a specified file.

10
New cards

Shell Script

An executable text file containing a sequence of commands executed line-by-line by a shell interpreter, designed for automation, batch processing, and reproducibility.

11
New cards

Shebang (#!/bin/bash)

The initial character sequence at the top of a script that identifies the path to the specific interpreter used to parse and execute the script file.

12
New cards

Exit Status

A numerical value returned by a command or script upon termination, where an exit status of 00 represents success and any non-zero value indicates an error or failure.

13
New cards

Environment Variables

System-wide predefined variables (such as USER</code>,<code>USER</code>, <code>HOME, SHELL</code>,and<code>SHELL</code>, and <code>PATH) that describe configuration settings and paths in the current shell session, viewable using env or printenv.

14
New cards

Special Parameter $#

A built-in Bash parameter that holds the total count of positional arguments passed to the script from the command line.

15
New cards

Special Parameter $?

A built-in Bash parameter that contains the exit status of the most recently executed foreground command.

16
New cards

Program

A passive entity consisting of compiled machine code and static data stored on disk that is not currently running.

17
New cards

Process

An active instance of a program in execution, having its own dedicated execution state, program counter, processor registers, and allocated memory regions.

18
New cards

Program Counter (PC)

A hardware register within the CPU that stores the memory address of the next instruction scheduled for execution.

19
New cards

Stack Segment

The memory segment of a process that dynamically stores function call frames, local variables, and return addresses, expanding downward toward lower memory addresses.

<p>The memory segment of a process that dynamically stores function call frames, local variables, and return addresses, expanding downward toward lower memory addresses.</p>
20
New cards

Heap Segment

The region of process memory reserved for dynamic memory allocation managed at runtime, which grows upward toward higher memory addresses.

21
New cards

Ready State

A process lifecycle state in which a process resides in memory and is fully prepared to execute, waiting for the operating system CPU scheduler to dispatch it.

22
New cards

Waiting / Blocked State

A process state in which execution is suspended while waiting for an external event to complete, such as disk I/O, a network response, or resource availability.

23
New cards

Zombie Process

A completed process that has ended execution but retains an entry in the kernel process table to preserve its exit status until its parent process invokes wait() or waitpid().

<p>A completed process that has ended execution but retains an entry in the kernel process table to preserve its exit status until its parent process invokes <code>wait()</code> or <code>waitpid()</code>.</p>
24
New cards

Process State Transition

The movement of a process among execution states (New, Ready, Running, Waiting/Blocked, Terminated) triggered by events such as scheduler dispatch, timer preemption, I/O waits, or completion.

<p>The movement of a process among execution states (New, Ready, Running, Waiting/Blocked, Terminated) triggered by events such as scheduler dispatch, timer preemption, I/O waits, or completion.</p>
25
New cards

Preemption

The involuntary suspension of a currently running process by the operating system, triggered by an expired CPU time slice or the arrival of a higher-priority process, shifting it back to the Ready state.

26
New cards

Context Switch

The mechanism by which an operating system saves the current CPU state of an executing process to its PCB and restores the saved state of another process to resume execution on the CPU.

<p>The mechanism by which an operating system saves the current CPU state of an executing process to its PCB and restores the saved state of another process to resume execution on the CPU.</p>
27
New cards

Process Control Block (PCB)

A kernel data structure dedicated to an individual process that stores its process ID (PID), current state, program counter, CPU registers, memory bounds, and open file descriptors.

28
New cards

System Call

The controlled interface through which user-space application code requests privileged services and operations directly from the operating system kernel.

<p>The controlled interface through which user-space application code requests privileged services and operations directly from the operating system kernel.</p>
29
New cards

CPU Virtualisation

An operating system abstraction that gives each running process the illusion of having exclusive access to its own private processor, implemented via time slicing, scheduling, and context switching.