- What is the difference between RISC and CISC processors?
- A RISC processor has relatively few, simple instructions, mostly fixed length and single-clock-cycle, with many general-purpose registers and a hard-wired control unit. A CISC processor has a large instruction set, with variable length or multi-operation instructions that take several clock cycles. The RISC design emphasis is on the software, and the CISC emphasis is on the hardware.
- How does pipelining increase the instruction throughput of a processor?
- Pipelining divides the processing of an instruction into stages: instruction fetch, instruction decode, operand fetch, instruction execute and write back. Several instructions are processed simultaneously, each at a different stage, so the instruction throughput of the CPU increases. Each stage is completed during one clock cycle, and the number of clock cycles is k + (n - 1), for k stages and n instructions.
- What happens when a processor receives an interrupt?
- At the start or end of each fetch-execute cycle, the processor checks whether an interrupt flag is set and checks its priority. If the priority is high enough, the status of each register is stored on the stack. The Interrupt Service Routine is then executed, and the registers are restored from the stack so the original program carries on.
- What are the four computer architectures SISD, SIMD, MISD and MIMD?
- SISD performs a single instruction on data from a single source, so instructions run sequentially. SIMD performs the same operation on multiple data streams at the same time. MISD performs different operations on the same data stream. MIMD has many processors, each executing different instructions on different data, and they operate independently.
- What is a virtual machine and how does the host operating system control it?
- A virtual machine is a standalone environment running on a physical computer, which can emulate the hardware and software of another system. The host operating system controls the host machine and its physical resources. A guest operating system runs within the VM, and a hypervisor runs between the host and guest operating systems.
- Is a virtual machine the same as virtual memory?
- No. A virtual machine is a standalone environment that can emulate the hardware or software of another system. Virtual memory is an area of secondary storage used to temporarily extend the available memory, and it is not a virtual machine.