Posts

Arlon's CSUMB Intro to Operating Systems CST-334 Module 4 Learning Journal #4/#28 for the week Wed 07/14-Tues 07/20, year 2021

Arlon's CSUMB Intro to Operating Systems CST-334 Module 4 Learning Journal #4/#28 for the week Wed 07/14-Tues 07/20, year 2021 This week in class we studied OS paradigms for memory management some more, which has to do with where the OS decides to put the actual memory while serving virtual memory addresses to programs and itself. Journal spec: write a 1 - 2 paragraph description of what you learned this fourth week in CST 334 Topic: Memory Virtualization: The way that the OS provides the illusion of private address spaces for each process is that there is an address translation with a page table each process generates - so that each program can get the same or relatively arbitrarily related labels for each process's virtual memory addresses while the OS translates the assigned labels to the actual RAM memory addresses using the page tables. The OS keeps a free list of available addresses so it knows where it can put what. There are various schemes used as to when to swap

Arlon's CSUMB Intro to Operating Systems CST-334 Module 3 Learning Journal #3/#27 for the week Wed 07/07-Tues 07/13, year 2021

Arlon's CSUMB Intro to Operating Systems CST-334 Module 3 Learning Journal #3/#27 for the week Wed 07/07-Tues 07/13, year 2021 This week in class we studied OS paradigms for memory management which has to do with where the OS decides to put the actual memory while serving virtual memory addresses to programs and itself. There are several types of spaces for memory like for where the code goes (code space), where the procedure calls go (stack) and where variables and arrays go in memory (heap). Code is static because it's the code, stack space and heap space grow. So the book goes through the reasoning process of first putting them face-to-face growing inward with code space outside of them, then staggering inward with something called base and bounds and multiple programs fit in the same area, then base and bounds with segmentation based on a complicated segmentation process where the OS translates memory to different segments. In addition, after this week we are now intr

Arlon's CSUMB Intro to Operating Systems CST-334 Module 2 Learning Journal #2/#26 for the week Wed 06/30-Tues 07/06, year 2021

Arlon's CSUMB Intro to Operating Systems CST-334 Module 2 Learning Journal #2/#26 for the week Wed 06/30-Tues 07/06, year 2021 This week in class we studied switching processes/threads and creating threads in C, and the theory aspects of how the kernel decides prioritization of threads with regard to when and how long they should be allowed to run, various partial strategies including round robin, FIFO, SJF, ending with multi-level feeback queue. We also started using makefiles for C programs. In threads study lab this week on top of testing variations of running child and parent threads I also found a way to turn a conditional inside-out with anonymous functions and a conditional operator, something like: /* Name: Arlon Arriola Date: 07/06/2021 Title: Lab2–threads/processes/child/parent–Alternative conditional structure Description: Study of alternative conditional structure for Lab 2–threads/processes/child/parent */ #include <stdio.h> /* printf, stderr */

Arlon's CSUMB Intro to Operating Systems CST-334 Module 1 Learning Journal #1/#25 for the week Wed 06/23-Tues 06/29, year 2021

Arlon's CSUMB Intro to Operating Systems CST-334 Module 1 Learning Journal #1/#25 for the week Wed 06/23-Tues 06/29, year 2021 This week I learned and practiced to use awk and bc the calculator program in bash in a few different ways to do calculations with floating point numbers - pure bash just does integers apparently - I won't demonstrate here yet because the homework isn't due quite yet. I made a lot of examples, took notes on them and saved them with explanations so all this is knowledge I've gained - I actually use shell scripts in real life, myself. I like the book a lot - well - I also find it quite readable - I would like more code examples - but it's okay, I know where to get them (read on). But I have learned a lot from the book in general about some of the specifics of how operating systems work. We are learning bash right now and as I said in the discussion, I can definitely say why bash scripts and scripts in general are good and very helpful to lea