Chapter 8. LINUX USER PROGRAMS

At the beginning of chapter 6 it was noted that memory addresses used in Linux user programs are not true memory addresses. The main reason for this is that Linux needs to prevent the user from having direct access to memory. See Figure 8-1.

Protected Operating System such as Linux

Figure 8-1. Protected Operating System such as Linux

Linux is a multitasking system. A multitasking system has many user jobs and an operating system, which are all running at once. On a machine where any job can overwrite the memory belonging to another job, a multitasking system is impossible. Multitasking requires memory protection. Linux uses paging to implement a memory protection ...

Get Linux Assembly Language Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.