Computer Science H446/01 Set 2 Computer Systems practice paper review
Computer Science H446/01 Set 2 Computer Systems practice paper review Describe one difference between paging and segmentation - answerIn paging memory is divided into fixed sizes. Segmentation divides memory logically (i.e. variable size) Interrupt - answerA signal to the processor indicating a device/process needs attention Describe what happens in the CPU when it receives an interrupt - answer1). If the interrupt is of a lower or equal priority to the current process then the current process continues. 2). If it is higher priority, the CPU finishes its current FDE cycle. 3). The contents of the CPU's registers are copied to a stack in memory. 4). The location of the appropriate ISR is loaded into the program counter 5). When the ISR is complete, the previous contents are popped from the stack and loaded back into the registers. Encapsulation - answerPublic methods are used to read/amend the attributes value. Discuss this relating to the scenario given. Inheritance - answerWhen a class has attributes and methods of its parent class. It may also have methods and attributes of its own. Link to scenario given. Assembler - answerTranslates assembly code to object code Explain how pipelining would help a CPU execute the code more quickly - answerPipelining would allow one instruction to be fetched as a previous one is being decoded and the one before is being executed. Give an example relating to scenario: e.g. OUT could be fetched. As there are no jump/branch instructions it pipelines well. Describe what happens when a webpage is requested - answerData is sent from the browser to the server. The server processes it and sends the output back to the brows
Written for
- Institution
- Computer Science H446/01
- Course
- Computer Science H446/01
Document information
- Uploaded on
- March 5, 2024
- Number of pages
- 3
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
computer science h44601 set 2 computer systems pr