Logo/

Flashcard Deck

Log in

Made with ScholarlyMake flashcards like these from your own notes

Flashcard Deck

Questions and answers

31 cards
  1. Question:What are the two main stages of the instruction cycle?

    Answer:Fetch and Execute

  2. Question:What does the Program Counter hold?

    Answer:Address of the next instruction (increments after fetched)

  3. Question:What is the purpose of the Accumulator in instruction execution?

    Answer:Temporary storage

  4. Question:Where does the Instruction Register store the instruction?

    Answer:Processor

  5. Question:Can data be transferred interchangeably from processor to memory?

    Answer:Yes

  6. Question:Can data be transferred interchangeably from processor to IO?

    Answer:Yes

  7. Question:What type of operations can a data processing processor perform on data?

    Answer:Arithmetic operations

  8. Question:How can control instructions alter the sequence of instructions?

    Answer:By changing the sequence of instructions

  9. Question:What do interrupts cause the CPU to do?

    Answer:Suspend current process to run the interrupt handler process

  10. Question:Where can interrupts come from?

    Answer:Hardware (e.g. power failure) or software (e.g. segmentation fault)

  11. Question:How are multiple interrupts dealt with?

    Answer:By either disabling interrupts or prioritizing high priority interrupts

  12. Question:What does the principle of locality refer to in terms of memory access?

    Answer:Spatial refers to accessing memory locations that are close by, while Temporal refers to the likelihood of accessing a memory location again after it has been accessed

  13. Question:What is Direct Memory Access (DMA)?

    Answer:When the CPU tells a device directly where to put data in memory without involving the CPU in the transfer process

  14. Question:What is an advantage of using DMA for slow devices?

    Answer:It is more efficient as the device puts data in memory when done, allowing the CPU to focus on other tasks

  15. Question:Why is DMA considered more efficient for slow devices?

    Answer:It eliminates the need for the CPU to repeatedly check the device for data transfer status

  16. Question:What is Direct Memory Access (DMA)?

    Answer:DMA is when the CPU tells a device directly where to put data in memory once it is completed, without involving the CPU in the process.

  17. Question:What is the advantage of DMA?

    Answer:DMA is significantly more efficient for slow devices as it allows the device to put data in memory when it is done, freeing the CPU for other tasks.

  18. Question:What are the responsibilities of OS in storage management?

    Answer:1. Process Isolation 2. Automatic allocation and Management 3. Supporting Modular Programming 4. Protection and Access Control 5. Storage for long term

  19. Question:Monolithic vs Microkernel

    Answer:Monolithic: Everything runs under one executable, runs in Kernel mode, less context switching, easier to develop, simpler system. Microkernel: Highly modular, high fault tolerance, more overhead due to interprocess communication, more context switching.

  20. Question:Context switching

    Answer:Switching between user and kernel mode.

  21. Question:Fault Tolerance

    Answer:Ability to proceed with system when failures occur.

  22. Question:Modular

    Answer:Customizability.

  23. Question:SIGINT

    Answer:Signal Interrupt. Terminate process and clean up resources. Eg. kill -INT PID or kill -2 PID. CTRL+C in Linux Terminal.

  24. Question:SIGKILL

    Answer:Signal Kill. Force stop a process immediately with no clean up. Eg. You shut down your pc and Windows notifies that you have processes still running and you click Shut down anyways. kill -9 PID or kill -KILL PID.

  25. Question:SIGSTOP

    Answer:Signal Stop. Pause a process. Eg. kill -STOP PID or kill -19 PID. CTRL+Z in Linux Terminal.

  26. Question:SIGCONT

    Answer:Signal Continue. Continue a previously paused signal. Eg. kill -CONT PID or kill -18 PID.

  27. Question:kill -L

    Answer:Gives a list of Signals. Eg. to find a specific one: kill -L | grep SIGSTOP

  28. Question:What does the Linux command 'kill -CONT PID' do?

    Answer:Continue a previously paused signal for the specified process ID.

  29. Question:What signal number is used to continue a paused process in Linux?

    Answer:18

  30. Question:How can you list all available signals in Linux using the 'kill' command?

    Answer:kill -l

  31. Question:How can you search for a specific signal, such as SIGSTOP, in the list of signals displayed by 'kill -l' command?

    Answer:kill -l | grep SIGSTOP