Repository navigation
Conversation
Three Operating Systems generators, built on the same schedule() the lessons' CPU scheduler runs. Each draws 3 or 4 processes arriving at time 0 with distinct bursts: - average waiting time under FCFS, - average waiting time under non-preemptive SJF, - when a given process finishes under Round Robin with quantum 2 to 4 (always one that gets preempted, so the quantum matters). Wrong options are real slips: average turnaround instead of waiting, the other algorithm's answer, the sum instead of the average, the FCFS finish time, the waiting time. A test checks 500 seeds of each against an independent simulation. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EC6Zzt5akQu7TEHdGquZzp
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EC6Zzt5akQu7TEHdGquZzp
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #109 (→ #108 → #105 → #104 → #102 → #101). Merge the exam stack in order.
Exam phase 5b: generated CPU-scheduling questions for Operating Systems, built on the same
schedule()that powers the lessons' CPU scheduler. Each question draws 3 or 4 processes arriving at time 0, with distinct bursts from 1 to 12.Tests
src/test/generated-questions.test.tscovers all generators: 500 seeds each, four distinct options, one right answer in every position, stable ids, and real lessons and headings. A new check recomputes all three scheduling answers with an independent simulation: running prefix sums for FCFS and SJF, and a plain queue for Round Robin.npm run lint: 0 errors.npm run test: 3,699 passed.npm run build: OK.Next
5c is Big-O for Algorithm Design and Analysis. That's your course, so I'll leave it until you say yes. Otherwise the next generated topics could be TCP congestion windows or Discrete Mathematics counting.
Generated by Claude Code