Hi
I completed a project for school where we had to do cpu scheduling by reading in a file processes.txt and then doing 2 algorithms on it and printing out the order in which processes execute (current time to current process executing) and then doing some calculations (turn around time, etc.).
This is the part that confuses me:
your program should allow you to specify the abbreviation of the algorithm you wish to execute on the command line (see below for abbreviations).
I have one big file that does both of my algorithms at once and prints out their results one after the other. If I wanted to have it so my script executes one or the other, how do I go about this? for instance ./file SPN (to execute shortest process next algorithm) how would I do this? My entire code for both was written into the END{} portion in awk. Would I have to modify the entire thing?
pls keep in mind im still a newbie at this
Pls help!