Multitasking OS: How Eva Plays Music While Browsing
Eva's ability to stream music while browsing the web is enabled by a preemptive multitasking operating system—standard on all modern platforms:
- Windows (NT kernel)
- macOS (XNU)
- Linux (Kernel 2.6+)
- iOS / iPadOS
- Android (Linux-based)
How It Works
- Process Isolation: Music player (e.g., Spotify) and browser (Chrome/Safari) run as separate processes with protected memory.
- Time-Slicing: The CPU scheduler rapidly switches between processes (milliseconds), giving each a "turn." To the user, they run simultaneously.
- Audio Subsystem: Low-latency audio path (WASAPI/CoreAudio/ALSA/PipeWire) prioritizes playback buffer refill—prevents glitches under load.
- Background Execution Policies: Mobile OSs (iOS/Android) manage background audio via specific APIs (e.g., `AVAudioSession`, `MediaSession`) to allow playback while browser is active.
This architecture—preemptive multitasking + priority audio scheduling—is why you can listen, browse, download, and compute all at once. Single-tasking OSs (DOS, early Mac OS, Windows 3.1) could not do this reliably.