Telescope Field of View Simulator – Online Eyepiece & Object
Input telescope and eyepiece parameters to see a simulated view of the Moon or Andromeda. Plan observations.
UD5 Toolkit
Simulate FIFO, LRU & Optimal page replacement algorithms with step-by-step visualization
A page replacement algorithm is used by an operating system's virtual memory manager to decide which memory page to evict when a new page needs to be loaded and all frames are full. The goal is to minimize page faults — situations where the requested page is not in memory and must be fetched from disk, which is significantly slower.
FIFO replaces the page that has been in memory the longest. It maintains a queue of loaded pages. When a page fault occurs and all frames are full, the page at the front of the queue is evicted. While simple to implement, FIFO suffers from Belady's Anomaly — increasing the number of frames can sometimes increase the number of page faults.
LRU replaces the page that hasn't been accessed for the longest time. It's based on the principle of temporal locality — recently used pages are likely to be used again soon. LRU generally performs better than FIFO but requires tracking access timestamps, making it more complex to implement in hardware. LRU does not suffer from Belady's Anomaly.
The Optimal (OPT or MIN) algorithm replaces the page that will not be used for the longest time in the future. It guarantees the minimum possible number of page faults for a given reference string and frame count. However, it requires future knowledge of the reference string, making it impossible to implement in practice. It serves as a theoretical benchmark to evaluate other algorithms.
Belady's Anomaly is a counterintuitive phenomenon where increasing the number of available frames actually increases the number of page faults for the FIFO algorithm with certain reference strings. This anomaly does not occur with stack-based algorithms like LRU and Optimal. The classic example reference string 1,2,3,4,1,2,5,1,2,3,4,5 with 3 vs 4 frames demonstrates this effect.
Efficient page replacement is critical for system performance because page faults incur significant latency (accessing disk is ~100,000× slower than RAM). Modern operating systems use approximations of LRU (like the Clock algorithm) that balance performance with implementation complexity. Understanding these algorithms is fundamental to OS design, database buffer management, and cache systems.
The table shows the state of memory frames after each page reference. The top row shows the reference string with color coding (red = page fault, green = hit). Each subsequent row represents a frame, showing which page it holds at each step. Cells with orange background indicate a page just loaded due to a page fault. Green cells indicate a hit. The bottom indicator row shows PF for page faults and ✓ for hits.
Input telescope and eyepiece parameters to see a simulated view of the Moon or Andromeda. Plan observations.
Type a UPC or EAN number and see how a laser scanner would identify it, plus check digit validation.
Ask a yes/no question and click to reveal a classic Magic 8-Ball response. Animated shake effect. Nostalgic fun, pure local randomness.
Set up resources and processes and run the Banker's algorithm to check for safe states. Classic OS deadlock avoidance demo.
Enter a password and see the estimated time it would take to crack using brute force at different speeds. Educational.
Adjust page characteristics (image size, server delay, layout shift) and see the simulated Core Web Vitals scores. Understand what impacts performance.
Open many parallel WebSocket connections and send messages. Test your server's concurrency. All from your browser.
Keep track of a tennis match: points, games, sets, and deuce. Supports tiebreak. Great for friendly matches. Local.
A sequence of digits flashes for a few seconds. Type it back. Increase length. Improve your working memory.
See how many tabs you have open and estimate memory usage based on navigator object. Fun productivity check.
Upload any image and view it as a person with deuteranopia, protanopia, or tritanopia would. Promote inclusive design.
Roll any number of dice thousands of times and see a live bar chart of the sum distribution. Great for game designers.
Select functional groups to see an approximate IR absorption spectrum. Learn spectroscopy visually. All local.
Simulate random mouse moves, clicks, or keystrokes to test idle‑timeout logic. Stops when you move the mouse. Dev test.
Type any CSS selector with :hover/:active/:focus and see the styles applied live. Perfect for debugging interaction states.
Set a cron expression and see a calendar of the next 1,000 execution times. Never miss a schedule again.
Visualize how aperture, focal length, and subject distance affect background blur. Interactive DOF calculator.
Adjust ISO, aperture, and shutter speed sliders and see how it affects the exposure of a sample scene. Learn photography basics.
Watch and repeat the growing sequence of colored buttons. How long is your memory? Classic electronic game replica.
Select telescope and eyepiece parameters to see the field of view circle on a simulated night sky image.
Watch the planets orbit the Sun in a top‑down 2D view. Adjust speed and zoom. Distances not realistic; beautiful model.
Fold a virtual square paper step by step with crease lines and visual previews. Practice origami basics without wasting real paper. All canvas‑based.
Watch a color sequence and click the same pattern. Gets longer each round. Test and improve your working memory. All local.
Drag to see how a solar eclipse occurs. Visualize the moon's shadow. Educational and interactive.
Enter a URL and get a rough client-side performance simulation: request count, DOM size, and potential speed tips. No real Lighthouse.
Repeat the growing color sequence. How far can you go? Classic memory game with sound and animations.
Control a lunar module and try to land softly on the moon. Manage fuel and thrust. Classic arcade physics. Canvas.
Simulate how images and UI elements appear to users with various types of color blindness. Upload or paste image URL. Promote inclusive design.
Flip a virtual coin to make a decision or settle a dispute. Realistic animation and fair random outcome. Simple, fast, and always available.
Simulate rolling dice for board games, RPGs, and decision making. Choose number of dice and faces. Fun, lightweight, and no download required.