Made with ScholarlyMake flashcards like these from your own notes
Question:What are the two main stages of the instruction cycle?
Answer:Fetch and Execute
Question:What does the Program Counter hold?
Answer:Address of the next instruction (increments after fetched)
Question:What is the purpose of the Accumulator in instruction execution?
Answer:Temporary storage
Question:Where does the Instruction Register store the instruction?
Answer:Processor
Question:Can data be transferred interchangeably from processor to memory?
Answer:Yes
Question:Can data be transferred interchangeably from processor to IO?
Answer:Yes
Question:What type of operations can a data processing processor perform on data?
Answer:Arithmetic operations
Question:How can control instructions alter the sequence of instructions?
Answer:By changing the sequence of instructions
Question:What do interrupts cause the CPU to do?
Answer:Suspend current process to run the interrupt handler process
Question:Where can interrupts come from?
Answer:Hardware (e.g. power failure) or software (e.g. segmentation fault)
Question:How are multiple interrupts dealt with?
Answer:By either disabling interrupts or prioritizing high priority interrupts
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
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
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
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
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.
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.
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
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.
Question:Context switching
Answer:Switching between user and kernel mode.
Question:Fault Tolerance
Answer:Ability to proceed with system when failures occur.
Question:Modular
Answer:Customizability.
Question:SIGINT
Answer:Signal Interrupt. Terminate process and clean up resources. Eg. kill -INT PID or kill -2 PID. CTRL+C in Linux Terminal.
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.
Question:SIGSTOP
Answer:Signal Stop. Pause a process. Eg. kill -STOP PID or kill -19 PID. CTRL+Z in Linux Terminal.
Question:SIGCONT
Answer:Signal Continue. Continue a previously paused signal. Eg. kill -CONT PID or kill -18 PID.
Question:kill -L
Answer:Gives a list of Signals. Eg. to find a specific one: kill -L | grep SIGSTOP
Question:What does the Linux command 'kill -CONT PID' do?
Answer:Continue a previously paused signal for the specified process ID.
Question:What signal number is used to continue a paused process in Linux?
Answer:18
Question:How can you list all available signals in Linux using the 'kill' command?
Answer:kill -l
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