1. Early versions of Windows did not support true preemptive multitasking. Inste
ID: 3695260 • Letter: 1
Question
1. Early versions of Windows did not support true preemptive multitasking. Instead, the designers of Windows provided something they called "cooperative multitasking" in which each program was expected to give up control of the CPU at reasonable time intervals, so that the Windows dispatcher could provide execution time to another waiting program. Describe the disadvantages of this method in several sentences.
2. There are some capabilities that are easy to achieve with a graphical user interface, but much more difficult with a command line interface. Describe at least three of these capabilities in a few sentences each.
3. You have noticed that loading the programs from your hard disk seems to take longer than it used to. A friend suggests copying the files from your disk, one at a time, to a different device, and back to your disk. You do so and discover that the programs seem to load much faster now. What happened? What alternative approach would achieve a similar result more easily?
4. Explain the first-in-first-out dispatch algorithm in several sentences. Discuss the advantages and disadvantages of this algorithm. Is this a preemptive or nonpreemptive algorithm? We can use this discussion forum to answer questions about the assignment before it is due.
Explanation / Answer
Disadvantages Cooperative Multitasking:
1) In order to deschedule the process, the programmer is responsible for placing calls in the code. the code doesnt support taking of resources automatically with the interactions.
2) It is difficult to assign priorities to the tasks in cooperative multitasking, as the system doesnot have deterministic behavior.
3) though the latency is less when there are inactive events, the latency increases as the active events increases in the task cycle.
GUI and CLI:
Basically the GUI has achieved a interactive capabilities for the novice users which is not possible with the command line Interface. it is difficult to make novice understand the commands of CLI.
Working with the direct manipulations is easy with GUI when compared to CLI.
It is easy to implement check drag and drop uisng GUI for simple jobs like browsing.(for complex tasks both GUI and CLI has the same efficiency).
3. You have noticed that loading the programs from your hard disk seems to take longer than it used to. A friend suggests copying the files from your disk, one at a time, to a different device, and back to your disk. You do so and discover that the programs seem to load much faster now. What happened? What alternative approach would achieve a similar result more easily?
establishing cache memories in between the main memory and secondary memory is one alternative. the other is replacing HDD with SSDs which is cost effective.
4.First -In First -Out
First In First Out is a basic scheduling algorithm in the operating system, which grants CPU and resources to which ever process comes first into the ready queue. here all the processes have the same priority. the disadvantage is suppose a process with high burst time got the CPU grant, then the processes with lowest burst time will tend to starv. the advantage is all processes are dealt fairly, there is no complexity in the implementation and maintenance of the algorithm. It is non preemptive algorithm.
for further queries kindly get back.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.