CST-334 Week 1

The topics I learned this week are the basic concepts of an operating system, converting from binary to hexadecimal, and using bash scripts to run C programs. One of the uses of an operating system is to allow programs to share memory and enables programs to interact with devices that are in charge of making sure the system operates correctly and efficiently. An important concept in operating systems that I learned this week is virtualization. Virtualization allows the OS to take physical resources and transform them into a more general, powerful, and easy-to-use virtual form of itself (a virtual machine). I was able to practice these concepts through lab 1 and the first homework assignments. In these assignments, we learned to use docker to host a virtual OS so we could build C programs. Through these assignments, I was able to strengthen my understanding of memory allocation. I had some experience with using pointers in C++, but I was somewhat confused on how malloc() worked and why we needed to pass the size of a datatype as a parameter. The lecture's example of using a pointer to create an array made things start to click for me. From my understanding, we are asking the OS to allocate how many bytes of memory we want for each block (hence using the sizeof() function). One thing that confused me a bit was traps and interrupts, but after taking the quiz, they appear to be related to synchronous and asynchronous instructions.

Comments

Popular posts from this blog

Week 4

Week 5

Week 2