Preview

Study Guide 2 - Operating Systems

Good Essays
Open Document
Open Document
698 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Study Guide 2 - Operating Systems
1. Compare the prefetching scheme with spooling where the CPU overlaps the input of one job with the computation and of other jobs.

( Prefetching is a method of overlapping the I/O of a job with that job’s own computation. After a read operation completes and the job is about to start operating on the data, the input device is instructed to begin the next read immediately. The CPU and input device are then both busy.
With luck, by the time that the job is ready for the next data item, the input device will have finished reading that data item. The CPU can then begin processing the newly read data, while the input device starts to read the following data. While Spooling is the process of a sending data to a spool, or temporary storage area in the computer's memory. This data may contain files or processes. Like a spool of thread, the data can build up within the spool as multiple files or jobs are sent to it. However, unlike a spool of thread, the first jobs sent to the spool are the first ones to be processed. These two tries to keep both CPU and I/O busy, so as to improve the performance of the system, while differs as to where each of the scheme is based; prefetching is a user-based activity, while spooling is a system-based activity.

2. What are the differences between a trap and an interrupt? What is the use of each other?

( An interrupt is generally initiated by an I/O device, and causes the CPU to stop what it is doing, save its context, jump to the appropriate interrupt service routine, complete it, restore the context, and continue execution. For example, a serial device may assert the interrupt line and then place an interrupt vector number on the data bus. The CPU uses this to get the serial device interrupt service routine, which it then executes as above.
A trap is usually initiated by the CPU hardware. When ever the trap condition occurs (on arithmetic overflow, for example), the CPU stops what it's doing, saves the context, jumps to the

You May Also Find These Documents Helpful

  • Good Essays

    This chapter describes the concepts behind how a CPU reads the contents from RAM. Which of the following is true about the process of read data, as described in the chapter?…

    • 957 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Nt1210 Chapter 1 Review

    • 1315 Words
    • 6 Pages

    5. This chapter describes the concepts behind how a CPU reads the contents from RAM. Which of the following is true about the process of read data. As described in the chapter?…

    • 1315 Words
    • 6 Pages
    Good Essays
  • Good Essays

    Unit 59 Assignment 3

    • 645 Words
    • 3 Pages

    An interrupt is used when you want to quickly get the chips (CPU) attention at hardware level for a short amount of time when the value set has been meet (this is great as this removes barriers as stated on matrixtsl.com, you can with your program wake the controller when it’s in a low power state which you can’t do at software level). An interrupt works when you are running a program on an endless loop and meets a certain condition set in the program, this triggers the interrupt which will tell the CPU at hardware level (quicker than software level) to go to the sub program and once finished processing the sub-program, it will return back to the main program.…

    • 645 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    CHAPTER3 REVEIW

    • 527 Words
    • 3 Pages

    5. This chapter describes the concepts behind how a CPU reads the contents from RAM. Which of the following is true about the process of read data, as described in the chapter?…

    • 527 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    the following is true about the process of read data, as described in the chapter?…

    • 856 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    a. You input information perhaps via a keyboard or mouse to the computer and you receive output via a monitor or printer or some such device…

    • 1636 Words
    • 7 Pages
    Satisfactory Essays
  • Powerful Essays

    Nt1330 Unit 1 Assignment

    • 4639 Words
    • 19 Pages

    Typically this constitutes an interface for communicating with the device, through the specific computer bus or communications subsystem that the hardware is connected to, providing commands to and/or receiving data from the device, and on the other end, the requisite interfaces to the operating system and software applications. It is a specialized hardware-dependent computer program which is also operating system specific that enables another program, typically an operating system or applications software package or computer program running under the operating system kernel, to interact transparently with a hardware device, and usually provides the requisite interrupt handling necessary for any necessary asynchronous time-dependent hardware interfacing…

    • 4639 Words
    • 19 Pages
    Powerful Essays
  • Good Essays

    Nt1310 Unit 3 Os

    • 1341 Words
    • 6 Pages

    +• Scheduling: Any processor may perform scheduling, which complicates the task of enforcing a scheduling policy and assuring that corruption of the scheduler data structures is avoided. If kernel-level multithreading is used, then the opportunity exists to schedule multiple threads from the same process simultaneously on multiple processors.…

    • 1341 Words
    • 6 Pages
    Good Essays
  • Satisfactory Essays

    Biology Exam Paper

    • 2143 Words
    • 9 Pages

    Using a technology called ____, a processor can begin executing an instruction before it completes the previous instruction.…

    • 2143 Words
    • 9 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Prg 211

    • 393 Words
    • 2 Pages

    A sequential slow is a series of consecutive statements which is executed in the order that they instructed. The computer only operates on sequential code, one statement after the next, until it encounters a decision structure, loop structure, or a submodule. After the decision, loop, or instructions are completed, the next statement in sequence will be executed.…

    • 393 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Java

    • 5076 Words
    • 21 Pages

    Explanation: D) The program is first loaded from secondary memory into main memory before it is executed so that the processor is not slowed down by reading each instruction. This idea of executing programs stored in memory is called the Stored Program Computer and was pioneered by John Von Neumann in the 1940s.…

    • 5076 Words
    • 21 Pages
    Good Essays
  • Good Essays

    it320 assignment 1-3

    • 1779 Words
    • 8 Pages

    5. This chapter describes the concepts behind how a CPU reads the contents from RAM. Which of the following is true about the process of read data, as described in the chapter? (A. the CPU tells the RAM which address holds the data that the CPU wants to read.)…

    • 1779 Words
    • 8 Pages
    Good Essays
  • Good Essays

    Time Warner Cable (TWC) is one of the nation’s largest cable companies and being such has a large network of hardware and software at its disposal. According to "Time Warner Cable" (2013), its mission statement is to connect people and businesses with information, entertainment, and to give customers controls that are simple and easy to use. TWC utilizes Microsoft Windows XP and Microsoft Office giving the employees access from a TWC location or by a virtual private network (VPN) setup by the employee. Employees also have access to web based email that can be accessed via the internet anywhere in the World. In today’s business environment, technology is continually changing and improving. Operating systems and applications are used within companies worldwide to gather, disseminate, and control the flow of information. The application software can range from general covering a broad spectrum of information to addressing very specific information, enabling an organization to meet objectives.…

    • 796 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    Computer Class

    • 916 Words
    • 4 Pages

    2. The computer has something that enables it to figure out what to do with the input you give it: software.…

    • 916 Words
    • 4 Pages
    Satisfactory Essays
  • Good Essays

    Interrupts of 8085

    • 5879 Words
    • 24 Pages

    The interrupt I/O is a process of data transfer whereby an external device or a peripheral can inform the processor that it is ready for communication and it requires attention. The process is initiated by an external device and is asynchronous, meaning that it can be initiated at any time without reference to the system clock. But after that, the response to an interrupt request is controlled solely by the microprocessor. The interrupt process allows the microprocessor to respond to these external requests for attention or service on a demand basis and leaves the microprocessor free to perform other tasks.…

    • 5879 Words
    • 24 Pages
    Good Essays

Related Topics