Professional Documents
Culture Documents
Overview of Operating System
Overview of Operating System
Overview of Operating System
OS is system software, which may be viewed as collection of software consisting of procedures for operating the computer. It provides an environment for execution of programs (application software). Its an interface between user & computer.
9/15/2012
Operating System
Human Understandable Language (High Level Language)
User / Programmer
Types of OS
Multiprogramming OS Multitasking/Multiprocessing Multiuser OS Time Sharing OS Real Time OS Distributed OS
4
9/15/2012
A Second Classification This Classification is based on the type of interface Operating System provides for the user to work in. Character User Interface (CUI)
The User has to type the commands on the command prompt to get the work completed. Ex. DOS, UNIX.
Functions of OS
9/15/2012
Types of Processing
Serial Processing
The job is processed at the time when it is submitted.
Batch Processing
The similar jobs are bunched together and are kept for processing at an later time.
End of Session
Queries???
9/15/2012
Data Representation
Lecture Outline
Number Systems
Binary, Octal, Hexadecimal
9/15/2012
Data Representation?
Representation = Measurement Most things in the Real World actually exist as a single, continuously varying quantity Mass, Volume, Speed, Pressure, Temperature Easy to measure by representing it using a different thing that varies in the same way Eg. Pressure as the height of column
of mercury or as voltage produced by a pressure transducer
Digital Representation
Convert ANALOG to DIGITAL measurement by using a scale of units DIGITAL measurements
In units a set of symbolic values - digits Values larger than any symbol in the set use sequence of digits Units, Tens, Hundreds Measured in discrete or whole units Difficult to measure something that is not a multiple of units in size. Eg Fractions
12
9/15/2012
13
Number Systems
Decimal number system Binary number system Hexadecimal number system Converting Negative numbers Character representation
14
9/15/2012
15
16
9/15/2012
An octal number can easily be converted to binary by replacing each octal digit with the corresponding group of 3 binary digits 75128 = 1111010010102
17
9/15/2012
20
10
9/15/2012
Binary (base 2)
Two digits: 0, 1 To make the binary numbers more readable, the digits are often put in groups of 4
1010 = 1 * 23 + 0 * 22 + 1 * 21 + 0 * 20 =8+2 = 10 1100 1001 = 1 * 27 + 1 * 26 + 1 * 23 + 1 * 20 = 128 + 64 + 8 + 1 21 = 201
Octal Representation
Eight digits: 07 Shorter and easier to represent and store To make the binary numbers more readable, the digits are often put in groups of 4 Base 8 (octal number system)
123 = 1 * 82 + 2 * 81 + 3 * 160 = 1 * 64 + 2 * 8 + 3 * 1 = 64 + 16 + 3 22 = 83
11
9/15/2012
24
12
9/15/2012
Binary 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111 10000
Decimal 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
25
Hexadecimal 0 1 2 3 4 5 6 7 8 9 A B C D E F 10
26
13
9/15/2012
Example
Decimal to Binary 1492 (decimal) = ??? (binary) Repeated Divide by 2
27
28
14
9/15/2012
Converting
From binary or hex to decimal
Use positional representation as shown previously
Replace each set of four binary digits by the corresponding hexadecimal digit (or vice versa)
29
15
9/15/2012
31
Exercise
Value of 2001 in Binary, Octal and Hexadecimal
32
16
9/15/2012
Exercise
Conversion: Binary Octal Hexadecimal
33
Class Exercise
1. 2. 3. 4. 5. 6. Bin to dec: 1001 0011 Dec to bin: 105 Bin to hex: 0010 1110 1000 1011 Hex to bin: 0xFEDC Hex to dec: 0x10A Dec to hex: 165
34
17