Skip to content
/ cs370 Public

Programming assignments for my Operating Systems class. Languages used C, C++ and Java. Programmed from scratch

Notifications You must be signed in to change notification settings

Marc-9/cs370

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CS370 - Operating Systems

Assignment 1

  • Create and compile multiple C files
  • Dynamically allocate memory for an array filled with random numbers based on a seed
  • Get median and running count from array
  • Clear dynamically allocated memory with no memory leaks ./Driver.out

hw1demo

Assignment 2

  • Work with Fork and Exec to create new processes one the fly
  • Take arguments from input and pass to child process
  • Check if dividend is divisible by divisor
  • Wait on child process to finish and check exit code ./coordinator

hw2demo

Assignment 3

  • Similar to Assignment 2 but data will be passed using shared memory
  • Create shared memory for each of the child processes
  • Fork into child processes and have them attach to the newly created shared memory
  • Child process does the calculation, writes to shared memory then detaches and returns
  • Parent process waits for child and reads from shared memory, then cleans up the shared memory

hw3demo

Assignment 4

  • Implementation of the Producer Consumer problem in Java
  • Create a buffer of size 100 that Producer will pass content into and Consumer will read from
  • Producer and Consumer will be in threads that will execute at the same time
  • Use locks and other thread safe procedures to avoid race conditions
  • At the end the total produced should equal the total consumed

hw4demo

Assignment 5

  • Implement 3 different compiler scheduling algorithms (FCFS, SJFP, Priority)
  • Input will be a text file with PID, arrival Time, burst Duration, importance
  • Based on the algorithm tasks must be queued in a different order
  • Store average turn around time, average waiting time, and throughput for each algorithm

hw5demo

About

Programming assignments for my Operating Systems class. Languages used C, C++ and Java. Programmed from scratch

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published