GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Karteikarten

8. The Operating System

Scott Jones Computer Science A Level Englisch 84 Karten

Karten in diesem Stapel (84)

  1. 1Key Terms- OS
    - System software
    - Application software
    - Hardware
  2. 2What does system software do?Controls:
    - Hardware
    - Software
  3. 3What are the two most common types of system software?Operating system (OS)
    System start-up software
  4. 4What is application software?Specific task
  5. 5What is a hardware driver?Software
    Bridges OS & hardware
    Made by hardware devs
  6. 6How do hardware drivers complete their job?Conv. generic request (OS) -> specific request (driver)
  7. 7What is the main part of the OS used for?- Process management
    - Hardware management
    - Other key low-level tasks
  8. 8What is this part of the OS called?The kernel
  9. 9How are system interrupts dealt with?Calling an interrupt service routine (ISR)
  10. 10What the name of the index that file information is stored in?File allocation table (FAT)
  11. 11What do file systems determine?- Error detection used
    - How table is managed
  12. 12What are Window's main file systems?- FAT32
    - NTFS
  13. 13What is Mac's main file system?- HFS Plus
  14. 14What is Linux's main file system?- EXT3/4
  15. 15What is journaling?- Fault tolerance system
    - Prevents inconsistent states in case of failure
  16. 16What file systems use journaling?- HFS Plus
    - NTFS
    - EXT3/4
  17. 17What are the two types of journaling?- Meta-journaling
    - Block journaling
  18. 18What does meta-journaling do?- Log operations before commit to drive
    - If operation fails, system can check log to see what should have happened
  19. 19What happens if a save operation fails using meta-journaling?Data may be corrupted
  20. 20How does block journaling save data?1. Data copied to the journal
    2. Data committed to drive
  21. 21What are the implications of this?- Data restored if lost
    but
    - Slower (data saved twice)
  22. 22What is a file allocation table (FAT)?Stores:
    - File locations on drive
    - File meta-data
  23. 23What is a sector?Smallest unit of storage on hard drive
  24. 24What is a cluster?Groups of sectors
  25. 25How doe the FAT store files that span more than one sector?Stores location of first sector
    First sector points to other sectors
    e.g.
    FAT(pt.1) --> pt.2 --> pt.3 --> null
  26. 26How does the OS manage directories?It creates a special file that represents a folder
    Folders contain:
    - Links to other folder files (dir struct)
    - List of files in folder
    - Permissions and meta-data
  27. 27What is utility software?Software for common tasks
    (usually comes with OS)
  28. 28What does file management utility software do?- Move files
    - Copy files
    - Rename files
    - List directory content
    CANNOT OPEN FILES
  29. 29What does compression software do?- Reduces file size
    - Lossless
  30. 30What do task managers do?Allows viewing of current processes
    Useful for:
    - Finding bottlenecks
    - Killing unresponsive programs
  31. 31What is the purpose of anti-virus software?To protect the user against viruses:
    - Scans every file, comparing them to virus database
    - Monitors suspicious activity
  32. 32A Level Start*****
  33. 33What is batch processing?Performing many similar tasks w/o user input
  34. 34What are the properties of batch processing?- Performs large # of similar jobs
    - Runs without user intervention
    - Runs during out-of-office hours
    - Works through jobs sequentially
  35. 35How do batch processes deal with the large volume of data?Using master and transaction files
  36. 36What are the different types of OSs?Single-user OS
    Multi-user OS
    Real-time OS
  37. 37What are the properties of a single-user OS?- Only one user has access to system resources at once
    - Each user has separate home directory
  38. 38What are the properties of a multi-user OS?- More powerful computer
    - More than one user has access to system resource at once
    - Each user has a remote display
    - Uses multi-tasking
  39. 39What is multi-tasking?- Swapping apps in and out of CPU
    - Gives illusion of apps running in parallel
  40. 40What is multi-programming?Storing > 1 job in the CPU at once
    Done by swapping apps to prevent the CPU becoming idle; scheduling
  41. 41What are the properties of real-time OS?- Very fast
    - Only for specific systems (e.g. power stations, aircrafts)
  42. 42What is an interrupt?A signal sent from hardware to the CPU
  43. 43What handles an interrupt?The OS
  44. 44How is an interrupt handled?- The interrupt is sent to the CPU
    - The CPU informs the OS
    - The OS either ignores the interrupt or runs an interrupt service routine
  45. 45What is an interrupt service routine (ISR)?Special code that is run in the response to an interrupt
  46. 46What is a buffer?Small block of memory inside of hardware
    Stores work currently being handled by the device
  47. 47When is a buffer used?When the OS isn't ready to deal with interrupts
    Key presses are stored until interrupt can be handled
  48. 48What happens if a buffer overflows?The motherboard sounds a beep
  49. 49What is the hard drive's buffer used for?Receiving data from CPU to be stored
    - Speeds up CPU
    Receiving is called spooling
  50. 50What happens during double bufferingUses two buffers
    - One buffer accepts data
    - Other processes data
    Once finished, 1st buffer is copied to the 2nd buffer
  51. 51What happens during ping-pong bufferingA version of double buffering
    - No swapping
    - Roles are reversed after every write
  52. 52What must a memory manager do?- Allocate enough memory to each program
    - Split memory between processes
    - Stop processes accessing each other's data
    - Extend memory with virtual memory
  53. 53What is stored in RAM?- The OS
    - Running programs
    - Current files and data
  54. 54What is paging?Allocating blocks of memory to processes
    Blocks are called pages
  55. 55How are pages referenced?Through a paging table
  56. 56How are processes kept separate?Each process has its own virtual address space
    This is translated by the memory unit
  57. 57What is the formula for translating virtual memory addresses to physical addresses?Address = page number * page size + offset
  58. 58What is segmentation?Allows data to be split up into variably sized blocks
  59. 59What is stored in a segmentation table?- ID
    - Start address
    - Length
  60. 60What are segments commonly used to store?- Library software
    - Other shared blocks of data
  61. 61What is virtual memoryWhen the hard drive is used as additional memory
  62. 62What happens to a process that is put into virtual memory?It gets suspended
  63. 63What happens when a process is loaded from virtual memoryIt resumes processing
  64. 64What records if a process is in physical or virtual memory?Page table
  65. 65What are the three states that a process can be in?- Running
    - Blocked
    - Ready to run
  66. 66What does it mean for a process to be running?It currently has CPU time
  67. 67What does it mean for a process to be blocked?The program is currently waiting for an interrupt ∴ it doesn't have CPU time
  68. 68What does it mean for a process to be ready to run?The process is waiting for CPU time
  69. 69How are processes swapped out of the CPU?A process control block (PCB) is created which stores:
    - The PC contents
    - The general-purpose registers
    - The ACC contents
    - Variables and state of the process
    - Priority and the process ID
  70. 70Where are software interrupts stored?The interrupt register
  71. 71How are software interrupts stored?Changing the bit that refers to the interrupt from 0 to 1
  72. 72What happens it two of the same interrupt occur?Only the first is recorded
  73. 73When are interrupts handled?At the end of the FED cycle
  74. 74How does the system decide which interrupts to deal with?Compares the priority of both the interrupt and the current process
    If interrupt > process, the ISR runs
  75. 75How does the CPU know what ISR to run?It uses an indexed addressing mode:
    interrupt handling code = base address + (index * 4)
  76. 76Stacks and processing interrupts*TO ADD PICTURE*
  77. 77What is time-slicing?Used in multi-user OSs
    Gives each user a set amount of CPU time
  78. 78What is polling?Asking a device for its status
  79. 79What happens to a device during polling?It blocks (synchronous)
  80. 80What is busy-wait polling?Where the device waits (does nothing) while polling
  81. 81What is the alternative to this?The device continues activity and polls at regular intervals
    More efficient but not as much as using interrupts
  82. 82What is threading?Where a process splits up into parts, utilizing multiple CPU cores
  83. 83What are the advantages of threading?Processes don't need to block when waiting for an interrupt - they only stop using one core
  84. 84What is the main disadvantage of threading?There is no control over the order that threads execute in

Informationen

Beschreibung
A Level Computer Science ((AS) Unit 1: Fundamentals of Computer Science ) Karteikarten am 8. The Operating System, erstellt von Scott Jones am 31/07/2019.
Erstellt von
Scott Jones
Aufrufe
0
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck