1. of programs that are available to you. Your goal is to use these programs to
ID: 3827107 • Letter: 1
Question
1. of programs that are available to you. Your goal is to use these programs to do a se You are also provided with 3 systems (A, B, C). For each system, please describe how OS Components from the OS component list into categories, I) please ll) be nice (could substitute for a minimum one process minimum requirement want. The three are as follows: only runs display the at ill not multi B) has a single display that can a time with no with a output program at a but has and ch time. environment. OS Components: Programs: Word Processor a. Single cpu Calculator b. Multiple cpus A dungeon game c. File System d. Virtual Memory e. Program Interrupts Tasks: f. Timer Interrupts i. write a paper (total time 1/2 hr.) g. I/O Interrupts ii. Take a break every 5 minutes to play h. Hardware failure interrupts the dungeon game. i. Programmed I/O iii. Use the calculator to answer j. Interrupt driven I/O questions in the dungeon game. k. Direct Memory Access I/O i. Print the paper (time to print 5 l. 2 state process model minutes) m. 5 state process model Play the dungeon game while the n. Multithreading paper prints. o. Kernel level threads p. User level threadsExplanation / Answer
For System A:
(Only runs one processor at a time with no multiprocessing)
As this is a Single CPU system 1st we open the word processor to write when i take break for 5 minutes using program interrupt inactive the word processor to save it in the memory and using the file system Now using the I/O interrupts connect with the printer and start printing by accessing diretly to the memory . Here timer interrupts should use to automatically switch the processor to different objective . While printing active the dungeon game using a programmed Interrupts and while playing the game we need to open the calculator via the program interrupts so at that time the game became inactive and you can answer the dungeon game via the calculator App Use the Hardware Faliure Interrupts for notifying if any faliure occurs while printing. Now use the interrupt driven I/O to switch the processor to open the word processor again and start writing this process is continued for 1/2 hour to complete the writing and gaming process . We can use the user level threads here if wanted .
Here are the categorization of OS Components
FOR SYSTEM B
(Single Shell display but multitasking)
As the display is single shell but can do multitasking we should use a Multiple cpu system where system can do multiple work at a time So , 1st open the word processor and write , after 5 min we should start the dungeon game and play but , you can't do writing as there is a single screen so the word writing will save in the virtual memory
In the mean time for answering the game questions we have to open the calculator using the program interrupts after answering the question we can again start the writing
Now while we play the game we can print the writing that has saved before using any file system and have to use the I/O interrupts and Hardware faliure interrupts (helps to diagonise if any faliure in printer)
The best way to implement the whole process is by using the Two state model as we can switch between states using the multi level processor . It is recomended to use multi level threading for this system . And as it is a multi cpu system we should use kernel level system .
Here are the categorization of OS Components
For System C:
(Multiple tasking with a windowed environment)
Here to perform all the tasks is pretty easy . Quite naturally we have to use a multi cpu system and open a word editor and start writing .You can use the direct memory access to save the word document and save in a file system using the multithreading technique A programmed interrupts should use to make change from one programmed to another In the same way while We start play the dungeon game can answer the game through calculator using a different window and the printer will print directly accessing the memory and this is how the sytem can be designed .
It is recomended to use the 5 state process model to design the system .
Here are the categorization of OS Components
Os component Group I GroupII GroupIII Single CPU Yes Yes Yes Multiliple CPU NO NO NO File System Yes Yes Yes Virtual Memory No Yes NO Program Interrupts Yes YEs YEs Timer Interrupts Yes No I/O interrupts YEs YEs NO Hardware Faliure Interrupts YEs YEs NO Programmed I/O Yes Yes NO Interrupt driven I/O No Yes no Direct Memory Acess I/O NO Yes NO 2 state process model NO NO NO 5 state Process model No No No Multithreading No Yes No Kernel level threads No No No User Level Threads Yes Yes NoRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.