classnotes RTX 4070 Ti SUPER · faster-whisper · DeepSeek

5102 - Foundations of Comp Sys

← 5102 - Foundations of Comp Sys

FCS_17 Oct

Date 2026-10-17 Length 1h 49m Words 11,134 Segments 1,502
⤓ Download transcript (.txt with timestamps) ⤓ Plain transcript (.txt) ⤓ Transcript (.md)

Summary


session: "5102-foundations-of-comp-sys/2026-10-17 0000 FCS 17 Oct"

title: "FCS 17 Oct"

date: "2026-10-17 00:00"

duration: "1h 49m"

language: "en"

model: "deepseek-ai/DeepSeek-V4.1-Flash-1017"

parts: 3

transcript_chars: 59759

generated: "2026-11-23T15:58:13+05:30"


FCS 17 Oct

Overview

This session moved from observing threads to scheduling them. Students built and ran a POSIX-threads C program (threads_cpu.c) and inspected it live with ps, top -H and htop, seeing one process ID shared by seven threads (six workers + main) and per-thread CPU/memory figures. The class then ran a Python simulator (scheduler_demo.py) implementing FCFS, SJF, Priority and Round Robin on the same four-process workload, computing turnaround, waiting and response times. The session closed with testing/engineering context (functional vs performance vs security testing, auto-scaling) and a discussion of why the OS stays responsive when an application misbehaves. It sits at the hardware/software boundary: the OS schedules threads on cores, and the scheduler's policy choices are what the metrics measure.

Learning outcomes

Core concepts

POSIX threads (pthreads) and the C program

Definition: pthreads is the standard interface used to create multiple execution paths within one Linux process. Why it matters: it is the concrete mechanism by which one process gets several threads that the OS scheduler must place on cores. Connection: the observed thread counts and CPU% in ps/top/htop are the direct evidence of what pthread_create produced.

Linux observation: ps, top, htop

Definition: tools that display process and thread information. Why it matters: they are the empirical check on what the program actually created and how the OS scheduled it. Connection: the thread counts here match the THREAD_COUNT + 1 formula.

Thread limits and CPU behavior

Definition: how many threads can exist and what happens when they saturate cores. Why it matters: it explains why the VM did not crash at "CPU 100%". Connection: it is the bridge from the C program to the scheduling simulator.

Why the system stays responsive when an application misbehaves

Definition: the OS reserves resources for itself. Why it matters: it explains why you can still inspect and kill a runaway application. Connection: it is the same "resource efficiency / fairness" criterion used to judge schedulers.

Testing and engineering context

Definition: three testing activities and the cloud scaling options. Why it matters: the simulator is a performance-testing tool, not functional code. Connection: benchmark metrics (average waiting, turnaround, response) are exactly the simulator's outputs.

The Python simulator scheduler_demo.py

Definition: a simulator of FCFS, SJF, Priority and Round Robin with Gantt charts and performance metrics. Why it matters: it makes scheduling policies comparable on one workload. Connection: it operationalizes the workload criteria (responsiveness, throughput, fairness, resource efficiency).

Assumptions (stated before the code)

Definitions

Workload criteria and algorithm comparison

Definition: the criteria used to judge a scheduler. Why it matters: there is no "best" algorithm in the abstract. Connection: the simulator's metrics are the evidence for each criterion.

Transcript

One line per segment, [hh:mm:ss] timestamp first.

loading…