The process of switching between two executing processes on the CPU is called process context switching. Since many processes are running at any given time in Linux, they have to share the CPU. We can see PID as the second column in the output of the above ps command. Internally, the kernel uniquely allocates this number and releases it for reuse after the process exits. With a PID, we can identify any process in Linux. Linux processes are isolated and do not interrupt each other’s execution. Root 14 2 0 Jun28 ? 00:00:00 Īs we run new commands/applications or the old commands complete, we can see the number of processes grow and shrink dynamically. Root 1 0 0 Jun28 ? 00:00:16 /usr/lib/systemd/systemd -switched-root -system -deserialize 31 For instance, let’s see an example of using the ps command to view all the processes running on the machine: ~]$ ps -ef We can monitor them on the terminal using the ps command or on the System Monitor UI. Linux is running many processes at any given time. A process is a computer program under execution.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |