Computer responds to only two things—on and off
- 0 = off
- 1 = on
- ^ two states, on and off, so binary was chosen
- 0 = electrical pulse doesn't go in
- 1 = electrical pulse goes in
Binary
Every symbol on the keyboard is called a character, including spacebar and special symbols
- Combination of eight bits, called a byte, code for a character
- Every character on the keyboard is represented by a byte
- BYTE AS IN STORAGE BYTE i.e. gigabyte
- Pattern of electrical pulses is stored and becomes visual
Operating system does resource management
- Helps computer wake up and shut down and connect screen and mouse and printer, etc
Jobs are there and each job is given a priority
- Certain people are given a priority for jobs and which job gets done first depends on this priority
Compiler takes the high level language program from the user, checks in for any errors, displays them to the user to correct them, and after the errors are fixed, convert the ENTIRE program into machine language/binary language/object code/binary code/machine code.
- It converts high level language to binary to check for errors, converts it back to high level language to display to the user, takes the corrected program and converts it back to binary, gives the binary corrected program to the computer for execution, then takes the result and converts it to high level language to display to the user.
Interpreter is a systems program that takes in the high level language and converts it, statement by statement, into machine language.
- It also corrects errors along the way.
- You get output immediately
Source Code --> Compiler/Interpreter --> Object Code
Object Code: binary code/language, machine code/language, executable
Source Code: high level language (Java, C++, Python, etc)
Application Software and Systems Software
- Application Software: a software for a particular system
- System Software: use them all the time but in background (example: operating system, compiler, drivers)
When you boot your operating system, it is checking that everything is working