Posts

cd week_seven

Journal Entry Week 7 This week we started looking at how computers actually deal with real-world stuff like disks and devices, and then ended up inside how file systems are built from scratch. Topics We Covered I/O Devices (how the OS talks to hardware) Types of devices (block vs. character/stream) Polling, interrupts, and DMA Device drivers Hard drives (structure + performance) Disk scheduling (SSTF, elevator/SCAN) Files and directories (what they actually are) Inodes and links (hard vs symbolic) File system implementation (vsfs, bitmaps, superblock, etc.) How file access actually works (step-by-step reads/writes) Explaining the Topics I/O devices are basically everything that lets the computer interact with the outside world—keyboard, disk, screen, etc. The OS doesn’t talk to them directly in a messy way—it uses a structured system with registers (status, command, data) to communicate. There are two main device types: Block devices (like hard drives) --> you can jump to any locati...

cd week_six

Journal Entry Week 6 Topics We Covered The main topics we covered were: Anderson-Dolan method Using locks and condition variables to make a normal class thread-safe State variables in concurrent code Why busy waiting is bad Why wait() is different from a normal loop Synchronization barriers with semaphores Reusable barriers Turnstile pattern with semaphores How semaphores compare to locks and condition variables Explaining the Topics The Anderson-Dolan method felt like a step-by-step recipe for taking a normal class and turning it into a thread-safe one. Instead of just randomly throwing locks into code and hoping it works, it gives a process: start with a normal design, add a lock, protect the methods, add condition variables, add signal or broadcast, and then add waits inside loops. I liked that because concurrency usually feels messy, and this made it feel more structured. State variables were also a big deal this week. What clicked for me is that they help describe w...

cd week_five

Journal Entry Week 5 This week we moved deeper into concurrency, and now it’s not just “threads exist,” it’s like “threads can absolutely destroy your program if you’re not careful.” At first, I thought threads were just about doing multiple things at once, but now I’m realizing it’s really about controlling that chaos so everything doesn’t break. Topics We Covered Threads and concurrency basics Thread creation (pthread API) Race conditions and critical sections Locks (mutexes) Condition variables Lock performance and implementations Concurrent data structures (counters, lists, queues, hash tables) Explaining the Topics Threads are basically multiple execution paths inside the same program. Instead of one thing happening at a time, you’ve got multiple things running and sharing memory, which is where things start getting tricky. The pthread API is how we actually create and manage threads.  pthread_create() starts a thread, and pthread_join() waits for it to f...

cd week_four

 Journal Entry Week 4 Topics We Covered Free-space management (malloc/free, fragmentation) TLBs (Translation Lookaside Buffers) Multi-level paging (smaller page tables) Swapping / virtual memory beyond physical memory Page faults and present bit Page replacement policies (FIFO, LRU, Random, Optimal) Cache performance (hit rate, AMAT, locality) Explaining the Topics     Free-space management is basically how memory gets handed out and taken back. The tricky part is fragmentation, where memory gets split into little pieces, and even if you technically have enough space, you can’t use it efficiently.     TLBs are like a shortcut for address translation. Instead of checking the page table every time, which is slow, we cache recent translations so we can reuse them quickly. That makes a huge difference in performance.     Multi-level paging solves the problem of page tables being way too big. Instead of storing one giant table, we break it into smaller piec...

cd week_three

Journal Entry Week 3      This week definitely felt like a big jump in difficulty again. Last week was about processes and CPU scheduling, but now we’re getting into memory and how the OS actually manages it. We have moved from how programs run to where everything is stored and how we find it, and that got complicated pretty fast. Topics We Covered Address spaces and virtual memory Base and bounds Segmentation Paging Address translation Memory allocation (malloc/free in C) Fragmentation (internal vs external) Explaining the Topics      Virtual memory and address spaces: each process thinks it has its own memory, but it’s actually mapped to physical memory.      Base and bounds: simple offset + limit system (bounds).      Segmentation: splits memory into logical chunks like code, heap, stack.      Paging: divides memory into equal-sized pages and frames; uses VPN + offset.      C memory: malloc/free...

cd week_two

Journal Entry Week 2      This week felt like things got way more complexed compared to last week. Before, it was kind of big-picture stuff like “what an OS is,” but now we actually started digging into how it really works under the hood, especially with processes and CPU stuff. Topics We Covered Processes (what they are and how they work) Process states (running, ready, blocked) Process API (fork, exec, wait) CPU virtualization Context switching Scheduling basics (FIFO, SJF, STCF, Round Robin) Intro to more advanced scheduling like MLFQ Explaining the Topics      A process is basically a program that’s actually running, not just sitting there as code. The OS takes that program and turns it into something active, with memory, and registers.      The whole idea of CPU virtualization finally clicked a bit more this week. The OS is basically juggling a bunch of processes by switching between them really fast, so it looks like everything is runni...

cd week_one

Journal Entry Week 1      This week was my first real dive into operating systems. Before this class, I saw the OS as just the thing that boots up my laptop. Now I’m starting to see it as the manager of everything happening behind the scenes. Topics We Covered The main topics we covered were: What a program does and how the CPU executes instructions The role of the operating system Virtualization Memory basics Concurrency and multithreading Persistence and file systems OS goals (performance, security, reliability, etc.) Basic computer architecture (CPU, RAM, buses, storage hierarchy) Memory layout of a running program (stack, heap, text, data) Basic command line and compilation workflow Explaining the Topics:      A program is basically a list of instructions, and the CPU’s job is to fetch, decode, and execute those instructions one by one. That seems simple, but when you zoom out, thousands (or millions) of instructions are flying by every second.  ...

git checkout -b software-design-wrap-up

Learning Journal Summary           Looking back at the HW1 assignment now, it’s clear how much I’ve grown over the course of the semester. If I were to approach that assignment today, I would do so with a far deeper understanding of structure, planning, and design than I had at the beginning. One of the most important lessons I learned was the value of using stubs early in the development process. Creating stubs allowed me to visualize the end goal much more clearly and understand how all the pieces of a program would eventually fit together. It gave me a roadmap: what depended on what, what needed to be built first, and how the flow of the application would take shape. Alongside this, learning to read and write UML diagrams has been transformative. UML helped me build a mental model before writing actual code—mapping out classes, subclasses, and their relationships made everything else feel more intentional and manageable.      When I think ...

git checkout -b review-markov

Wk05: Learning Journal Markov      I worked with Josh Goldberg and Christopher Buenrostro.      For this assignment, I took a pretty steady and intentional approach. I started by looking closely at the UML diagram and the method descriptions the professor provided instead of jumping straight into coding. I wrote stubs for all the methods first, which helped me get a feel for the structure and see how everything connected. As I implemented the methods, I realized I was kind of working backwards through the chain—building the supporting pieces before the methods that depended on them. I didn’t sketch anything on paper; I just worked method by method, checking the JUnit tests along the way to make sure things behaved the way they were supposed to. In the end, I documented everything cleanly and reformatted the whole file to follow the Google Java Style Guide.      My strat for this assignment was, I started by looking closely at the UML diagram ...

git checkout -b project1-ldpm-review

Project 1 - LDPM - Review      I worked with Josh Goldberg. Strategy for Solving the Assignment:     I didn’t start coding right away. I first read through the UML diagrams to understand the overall structure and relationships between classes. I didn’t write anything out on paper, but I used the UML as my main guide.      My overall strategy was to approach the Monster assignment incrementally, following the UML design as the blueprint. I began by setting up the base Monster class first, implementing the fields, constructor, and simple accessor and mutator methods before moving on to more complex logic. I treated each section of the UML (fields, constructor, methods) as its own milestone and committed those changes separately to keep my work organized and traceable.      Once the base structure compiled cleanly, I focused on the core logic methods such as setPhrase, attackModifier, and calculateAttackPoints, using small commits....

git checkout -b hangman

Wk03 Learning Journal: HW 1 Code Review I reviewed Josh Goldberg and Christopher Buenrostro’s hangman code. For Josh’s code, this was my review: Some things I noticed, though, I don't know if any of these things actually improve efficiency or memory; there is a constant variable PLACEHOLDER = "_", that could have been used on lines 121 and 272, instead of using the char '_' itself. There's an unused import java.util.Random. I'm not sure if this was required to be used per the assignment or just something that didn't end up being needed and wasn't deleted. One thing I did notice in the chooseWord() method, was that the do while loop checks for previously guessedWords, but guessed words are never added to guessedWords anywhere in the code ex: guessedWords.add(selectedWord);.  For Christopher’s code, this was my review: In the chooseWord() method, there is no guard or check before the while loop: while(guessedWords.contains(tempWord)), that checks to ...

git checkout -b week1-reflection

     Well, in week 1, the Git commands were completely new to me. At first, the whole concept felt confusing and honestly kind of tedious, but after enough repetition, it starts to click and become second nature. For example, using the command "git checkout -b 'someName'" makes coding a lot safer. It creates a new branch so you’re not directly tinkering with the main branch while experimenting. Once you’re happy with your changes, you can merge them back into main without fear of breaking everything. I also didn’t know what “commits” were at first. Turns out, they’re basically little checkpoints or progress notes for your code. Each commit captures what you changed and includes a message describing what you accomplished. The command "git status" shows you what’s been modified and what’s ready for your next commit. Then, "git add ." stages everything, and "git commit -m 'your message here'" records those changes with a note about ...

Semester B - Week 1 - Software Design Begins

 My Process of Solving the Coding Bat Challenges:      When I approach a Coding Bat challenge, I start by examining what the function is expected to return and what parameters it takes in. This helps me understand what I’ll be working with and what I need to produce as an output. After that, I carefully read through the problem description, paying close attention to keywords like and, or, equals, and doesn’t equal. These clues help me anticipate the types of conditional statements I’ll need to use—things like &&, ||, ==, or !=. In a way, this process builds a mental framework for how the program will take shape.      Next, I consider whether there’s a specific range or scope involved, and then I think about which tools or functions might be most useful for solving the problem. Since I’m still fairly new to Java, I sometimes need to look up syntax or refresh my understanding online. Before I start typing, I usually try to reason through the prob...

Week 8 - Pro Finale

Part One: Review Other Teams' Final Video Projects Group 8 - OtterGaming's General Audience Video: https://www.youtube.com/watch?v=jWQoO-hBeQc      Group 8’s general public video explored the topic well enough for a broad audience to grasp the main concept and reflect on whether society should embrace or regulate this emerging technology in the future. The presentation was clear and encouraged thoughtful consideration of the potential societal implications of leasing such technology. The research quality was decent, though it could have been improved by including more details about the specific technologies involved and their possible real-world applications. The video production was fair overall—some clips were of good quality while others appeared average. However, the upbeat background music did not match the serious tone of the topic and felt out of place. Although the video’s subject matter was interesting enough to hold attention, the lack of narration made it ...

Week 7 - Mid Semester End

  Part One: Group Final Project Collaboration      For our team’s Final Research Video Project, I used InVideo AI to create test videos and experiment with ideas for the presentation. I also recorded voiceovers to assess my microphone quality and combined video clips in Adobe Video Editor to make a short demo for the group. This helped us visualize possible directions for the final product. Our team primarily communicates through Slack, where we share progress and feedback. Josh created the slide presentation and scripts, which we all reviewed and divided among ourselves. The process has been somewhat slow as many of us were focused on the final ethics essay for CST 300 GRAW, but now we’re turning more attention to the video project. Since the project is still in progress, it’s hard to say exactly what I would do differently next time, but once it’s complete, I hope to reflect on how to make future collaborative projects more efficient and better coordinated. Part Tw...