Tagged articles
2 articles
Page 1 of 1
Liangxu Linux
Liangxu Linux
Aug 21, 2025 · Fundamentals

Why Your Program Can’t Directly Control Memory or Hardware on Modern OSes

On modern operating systems, user‑mode programs are prevented from directly managing memory, executing privileged CPU instructions, or accessing hardware because such actions would break isolation, corrupt kernel data structures, and jeopardize system stability and security.

Kernel Securityhardware accessprivileged instructions
0 likes · 7 min read
Why Your Program Can’t Directly Control Memory or Hardware on Modern OSes
Java Tech Enthusiast
Java Tech Enthusiast
Apr 16, 2025 · Fundamentals

The Origin of System Calls and Kernel/User Modes

In the 1950s programmers wrote directly to hardware, but the fragility of hard‑coded memory and I/O led to the invention of a privileged “expert” kernel mode and a restricted “novice” user mode, with a special instruction to switch, forming the basis of modern system calls and operating system protection.

AssemblyOperating SystemSystem Call
0 likes · 5 min read
The Origin of System Calls and Kernel/User Modes