Digital Logic Systems and Microprocessors: Boolean expressions, K-maps, TTL and CMOS logic families, combinational logic design, synchronous sequential system design. Microprocessors: 8086 architecture, data transfer scheme and interfaces, addressing modes.
Computer Organization and Architecture: Von Neumann architecture of computers, registers and micro-operations, control logic, processor addressing and bus organization, processor input/output and DMA, memory organization and cache coherence.
Operating Systems: CPU scheduling, deadlocks, memory management, file systems, disk scheduling, process, threads and their synchronization. Real-time OS: clock synchronization and task scheduling. System initialization, booting and handling user accounts, backup and restore, Bourne shell programming for Linux.
n-bit 2's complement range
−2ⁿ⁻¹ … +(2ⁿ⁻¹ − 1); 8-bit: −128 … +127
Signed overflow
V = Cₙ ⊕ Cₙ₋₁ (carry into MSB ≠ carry out of MSB)
BCD addition
digit sum > 9 or a carry out → add 0110 (6)
Binary → Gray
MSB copied, then Gᵢ = Bᵢ₊₁ ⊕ Bᵢ (G = B ⊕ (B >> 1))
IEEE 754 single precision
1 sign + 8 exponent (bias 127) + 23 fraction; value = (−1)ˢ × 1.f × 2^(e − 127)
Boolean functions of n variables
2^(2ⁿ) — 16 functions of 2 variables, 256 of 3
De Morgan & consensus
(AB)' = A' + B'; (A + B)' = A'B'; AB + A'C + BC = AB + A'C
Fan-out & noise margin
fan-out = min(IOL/IIL, IOH/IIH); NMH = VOH − VIH, NML = VIL − VOL
TTL vs CMOS
TTL: 5 V, fan-out 10, NM 0.4 V; CMOS: 3–15 V, fan-out ≈ 50, power ∝ f
Flip-flop characteristic equations
JK: Q⁺ = JQ' + K'Q; D: Q⁺ = D; T: Q⁺ = T ⊕ Q
Counters
mod-N needs ⌈log₂N⌉ FFs; ring = n states; Johnson = 2n states
8086 physical address
PA = segment × 10H + offset (20 bits → 1 MB); reset → FFFF0H
8086 interrupt vector table
256 types × 4 bytes at 00000H–003FFH; vector = type × 4
Pipeline time
k + (n − 1) cycles for n instructions on k stages; speed-up → k
Amdahl's law
Speed-up = 1 / ((1 − f) + f/s); limit 1 / (1 − f)
CPU time & MIPS
CPU time = IC × CPI ÷ f; MIPS = f ÷ (CPI × 10⁶)
Average memory access time
AMAT = hit time + miss rate × miss penalty; hierarchical Tc + (1 − h)Tm
Cache address split
offset = log₂(block size), index = log₂(lines or sets), tag = rest
Memory chips needed
(total words ÷ chip words) × (word width ÷ chip width)
DMA modes
burst = whole block; cycle stealing = one word; transparent = idle cycles
Turnaround / waiting / response
TAT = CT − AT; WT = TAT − BT; RT = first dispatch − AT
SJF burst prediction
τₙ₊₁ = α·tₙ + (1 − α)·τₙ (usually α = ½)
HRRN response ratio
(W + S) / S — W = time waited, S = service time
fork() count
n forks in sequence → 2ⁿ processes (2ⁿ − 1 children); fork returns 0 in the child
Semaphore value
final = initial − (number of P) + (number of V); a negative value = processes blocked
Coffman deadlock conditions
Mutual exclusion, hold and wait, no preemption, circular wait — all four together
Banker's algorithm
Need = Max − Allocation; grant only if Request ≤ Need, Request ≤ Available and the new state is safe
Deadlock-free resource count
R ≥ Σ(maxᵢ − 1) + 1; identical processes: R ≥ n(k − 1) + 1
Paging address split
page size 2ⁿ: offset = n bits, page number = m − n bits; table = pages × entry size (32-bit, 4 KB, 4 B → 4 MB)
Effective access time
TLB: h(t + m) + (1 − h)(t + 2m); demand paging: (1 − p)·ma + p·fault-service time
Belady's anomaly
FIFO, 1 2 3 4 1 2 5 1 2 3 4 5: 9 faults with 3 frames, 10 with 4; LRU and Optimal never
Inode maximum file size
(12 + n + n² + n³) × block size, n = block ÷ pointer size; 4 KB / 4 B → ≈ 4 TB
Disk access time
seek + rotational latency + transfer; average latency = ½ rotation = 30/RPM s (7200 RPM → 4.17 ms)
RAID usable capacity
RAID 0 = n · RAID 1 and 10 = n/2 · RAID 5 = n − 1 (1 failure) · RAID 6 = n − 2 (2 failures)
Real-time schedulability
RMS: U ≤ n(2^(1/n) − 1) → ln 2 ≈ 0.693; EDF: U ≤ 1
Clock synchronization
Cristian: T = Tserver + RTT/2; Lamport receive: C = max(C, t) + 1
MBR layout
512 B = 446 boot code + 64 partition table (4 × 16) + 2-byte signature 0x55AA
/etc/passwd fields
name:x:UID:GID:GECOS:home:shell — 7 fields; UID 0 = root; hashes in /etc/shadow
umask
file = 666 AND NOT umask, directory = 777 AND NOT umask; 022 → 644 / 755
crontab fields
minute hour day-of-month month day-of-week command