mtfuller / os-team-project

This is the main repository for the OS Team Project for CS 3502.
0 stars 0 forks source link

Long vs. Int #10

Closed ghost closed 8 years ago

ghost commented 8 years ago

I completed the Long Term Scheduler today, and while I was testing it, I discovered that there are in fact some lines in our program-file.txt that can't be converted to an int. There's a method in my simulated Disk class that converts a job from String words to int words - and I had to change it to convert to Long.

Thomas, will your classes only deal with 4-bit items? If so, it won't matter if the lines are stored as ints or Longs in RAM, is that correct?

mtfuller commented 8 years ago

Hey Margaret,

Currently, my CPU module will attempt to fetch an integer value (a full instruction of 4-bytes). I think that it would be best to store each instruction as a Long, so we don't run into any of these NumberException issues. I think you are free to edit my classes in your branch, if you need the CPU to fetch in Long values. Would love to hear your thoughts.