Computer Systems Flashcards
What does an OR gate look like?
What does a NOT gate look like?
What does an AND gate look like?
What does a XOR gate look like
How do you represent NOT(A)? What is another word for the NOT gate
Ā, negation
How do you represent (A OR B), what is another word for the OR gate?
(A + B), Disjunction.
How do you represent (A AND B)? What is another word for the AND gate?
(A.B) , Conjunction
How do you represent (A XOR B)? What is another word for XOD gate?
(A ⊕ B), Exclusive disjunction
What does XOR gate do?
returns true only if exactly one input is true, otherwise returns false.
What is application software, give examples?
Application software is for user benefit. Word processors, internet browsers, games
What is system software, give examples?
System software performs the tasks needed to operate the hardware and provide services for other software. OS, game engines, utility programmes.
What is the Operating System?
the essential software that links the hardware and other software together and generally manages the computer system.
What is the purpose of the OS? 4 points.
- It manages the hardware (only the OS can interact with it)
- Manages the applications installed
- Creates a user interface (abstraction from the hardware
- Provides a layer of security (as it sits between the hardware and the application software
What are the two categories of the user interface?
- Command line interface - A shell responding to successive text commands (more direct and compact)
- Graphical User Interface - Uses icons and visual indicators to navigate and issue commands
How does the OS control process management? Multi tasking, single tasking?
- process = programme being executed by the computer
- A single tasking OS executes one process at a time and interrupts it if necessary
- a Multi tasking OS executes 1 process at a time but allows multiple applications to run by rapidly switching between process
- The OS allocates CPU time for each process and prioritises them in order of importance
How does OS control memory management?
- When a user opens a programme it needs to be loaded into the RAM.
- The OS oversees allocation and management of RAM space
- if there is no space, virtual memory may be used
- Different data and instructions are kept separate for security reasons
How does the OS control peripheral management?
The OS uses device drivers which are programmes that convert between the peripheral signals and the OS signals
How does the OS control user management and file management
- Manages usernames/passwords and account creation
- There are user account controls
- Maintains records of all the files stored in secondary storage, and what user can access what. (file permissions)
What are examples of low level languages?
- Machine code, simplest can be directly run by the processor. Machine code is specific to the processor, high level code can run on any computer with the right translator
- Assembly code
What are examples of high level languages?
Python, Pseudocode
What types of languages are portable? Are they slower or faster to implement?
High level languages, can run on any computer. More abstract languages leave more work to be done during runtime so are much slower to execute.
What is an assembler?
Assemblers are used to translate a program written in a low-level assembly language into a machine code (object code) file so it can be used and executed by the computer.
What is a compiler?
Compilers are used to translate a program written in a high-level language into machine code (object code). Once compiled (all in one go), it can be directly executed by the computer.
- You can distribute your programs without the source code, as it is no longer needed
- Error messages are only shown after scanning the whole code
What is an interpreter?
- High level to machine code.
- Works line by line, translates aline then immediately execute it
- Every time you want to execute a code you have to translate it again.
- Needs the source code and interpreter at all times
- Slower than compiler