๐ฌ CS Visual Lab
Learn Operating Systems, Computer Networks and Design Patterns by watching them work. Change the inputs, press Play and see every step, then check yourself. Also see the MCA Visual Lab for Data Structures and DBMS.
โ 0 / 16 lessons done๐ฅ๏ธ Operating Systems
CPU scheduling, memory paging, deadlock and disk scheduling, simulated step by step.โฑ๏ธ CPU scheduling Many processes want one CPU.๐ Page replacement RAM has a few frames.๐ฆ Deadlock avoidance: Banker's algorithm Before giving resources, the OS checks that every process can still finish in some order (a safe sequence).๐ฝ Disk scheduling The disk head moves across cylinders to serve requests.๐ Process states A process moves through states: New โ Ready โ Running โ (Waiting โ Ready) โ Terminated.
๐ Computer Networks
Layers, the TCP handshake, subnetting, sliding window and DNS, visualised.๐ฆ Layers and encapsulation Data goes down the TCP/IP layers and each layer adds its own header: Application data โ Transport segment (ports) โ Network packet (IP addresses) โ Data-link frame (MAC addresses) โ bits on the wire.๐ค TCP three-way handshake TCP opens a reliable connection with SYN, SYN-ACK, ACK, so both sides agree on starting sequence numbers.๐งฎ IP subnetting A /n prefix means the first n bits are the network part.๐ช Sliding window: Go-Back-N The sender may send up to N frames before waiting for an acknowledgement.๐ DNS lookup DNS turns a name like trainingtrains.com into an IP address.
๐งฉ Design Patterns
Six patterns asked in every interview, walked through with diagrams and code.1๏ธโฃ Singleton Only one object of a class exists, with one global access point.๐ญ Factory Method Create objects through a method instead of calling new directly, so the caller does not depend on the exact class..๐ Observer One object (the subject) keeps a list of observers and notifies all of them when it changes.โ๏ธ Strategy Put each algorithm in its own class behind one interface, and choose one at run time.๐ Adapter Wrap an existing class so its interface matches the one your code expects, without changing either side..๐ Decorator Add behaviour to an object by wrapping it in another object with the same interface.