1/28/2024 0 Comments Unix process stateThe options described here will cater for most commonplace needs. If you need to go deeper into ps than we've taken it in this article, you'll find that our introduction makes the man page easier to digest. Ps is flexible enough to give you precisely the information you need in exactly the format you'd like it. In fact, ps has a great many options. It gives you a snapshot of what is happening inside your computer "right now." The ps command satisfies both of these needs. Perhaps you're just curious about which processes are running inside your computer, and you'd like to peek beneath the hood. ![]() Of course, is to identify the process in question.īut maybe you don't have any task or performance issues at all. Sometimes tasks need to be killed as a mercy to everyone involved. Or they may continue running, but gobble up too much CPU time or RAM, or behave in some equally anti-social way. Sometimes tasks can lock-up, or enter a tight loop, or become unresponsive for other reasons. These have to be juggled in real-time so that all running processes get their fair share, according to the priority of each task. ![]() Amongst its many responsibilities is the allocation of system resources such as RAM and CPU time. ![]() The documentation of ps describes the possible values: PROCESS STATE CODES R running or runnable (on run queue) D uninterruptible sleep (usually IO) S. It's easiest to observe it in tools like ps or top: it's usually in the column named S. The beating heart of all Linux and Unix-like operating systems is the kernel. As in every Unix flavour, in Linux a process can be in a number of states.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |