O'Reilly logo

Compilers: Principles and Practice by Himanshu B. Dave, Parag H. Dave

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

7.2 Operating System

The operating system manages resources – CPU time and Memory – and allocates them to requesting programs. Very roughly, a running program is represented by a Process within the O/S. We shall have a brief review of how an O/S manages the processes.

All the system services are accessed via System Call Interface. We shall see some examples of assembly language programs using a few common system calls.

7.2.1 A Running Program – A Process

On a Unix-like system, including Linux, many user and system processes run concurrently (are active simultaneously). The one the user has invoked usually runs in the foreground, the other processes run in the background. The command ps will show you which processes are active and what PID numbers ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required