Questions tagged [process]

A process is a binary program running continuously on a computer (until terminated) which is managed by the operating system.

A process is a binary program running continuously on a computer (until terminated) which is managed by the operating system. A particular process may run multiple execution threads, but the flow of logic is generally directed by the main processes' thread.

The process executes on the CPU when the operating system's process scheduler determines that it should run. There are a wide variety of methods and algorithms used in operating systems to determine when to execute the next group of instructions in a particular process.

These schedules differ from operating system to operating system (or even in different versions). For example, the Linux kernel's process scheduler was changed from version 2.4 to 2.6.

1348 questions
1117
votes
12 answers

Find out which process is locking a file or folder in Windows

How can I find out which process is locking a file or folder in Windows? For instance, when trying to delete a folder, Windows reports this: The action can't be completed because the folder is open in another program Happens the same with a file,…
leeand00
  • 20,038
  • 39
  • 115
  • 177
341
votes
11 answers

If I know the PID number of a process, how can I get its name?

If I have the PID number for a process (on a UNIX machine), how can I find out the name of its associated process? What do I have to do?
AndreaNobili
  • 6,679
  • 11
  • 33
  • 41
163
votes
1 answer

Why are there no odd Windows process IDs?

There are many ways to examine process IDs in Windows. For example, using the PowerShell command: ps | select Id, ProcessName | Sort Id | ft -AutoSize We see the following output: Id ProcessName -- ----------- 0 Idle …
Peter Hahndorf
  • 12,792
  • 9
  • 48
  • 65
137
votes
8 answers

How can I know the absolute path of a running process?

If I have multiple copies of the same application on the disk, and only one is running, as I can see with ps, how can I know the absolute path to distinguish it from the others?
Jader Dias
  • 15,348
  • 59
  • 142
  • 194
122
votes
4 answers

What is effect of CTRL + Z on a unix\Linux application

I was curious and confused that what exactly is the behaviour of CTRl+Z. I know, If a process in running in foreground, and we press ctrl+z`, it goes to background. But what exactly happens?. Does it keep doing it's job?, or does it get suspended?,…
Kumar Alok
  • 1,493
  • 3
  • 11
  • 10
118
votes
10 answers

How to get parent PID of a given process in GNU/Linux from command line?

Resolved before asked: cat /proc/1111/status | grep PPid
Vi.
  • 16,055
  • 28
  • 105
  • 184
105
votes
16 answers

How can I trigger a notification when a job/process ends?

The place I work at has commands that take a long time to execute. Is there a command/utility that I can use to notify me when the command execution is over? It could be a popup window or maybe a little sound.
Utkarsh Sinha
  • 1,537
  • 2
  • 16
  • 18
100
votes
2 answers

How to stop a process in Terminal

Possible Duplicate: Ending a process in unix instead of interrupting it When I task in Terminal, such as ping blah.com, how do I then stop this task (other than closing the Terminal window. In Windows, you can Ctrl+Break pretty much any terminal…
AngryHacker
  • 17,615
  • 64
  • 151
  • 206
91
votes
7 answers

Why does WMI Provider Host (WmiPrvSE.exe) keep spiking my CPU?

I generally keep my laptop on 24x7, and at the end of the day it's really annoying to have my thighs burnt because over overheating. The overheating seems to be a result of WMI Provider Host (WmiPrvSE.exe) spiking the CPU utilization to 25% every…
Sathyajith Bhat
  • 60,985
  • 38
  • 178
  • 264
90
votes
8 answers

How to find uptime of a linux process

How do I find the uptime of a given linux process. ps aux | grep gedit | grep -v grep gives me a whole lot of information which includes the time at which the process was started. I am specifically looking for switch which returns the uptime of a…
Mahadevan Sreenivasan
  • 1,003
  • 1
  • 8
  • 6
87
votes
4 answers

Difference between "a=b" and "export a=b" in bash

What's the difference between: a=b and export a=b In bash? I understand that they both define environment variables, but I don't fully understand the difference.
Adam Matan
  • 7,570
  • 16
  • 58
  • 82
71
votes
6 answers

Is there any way to set the priority of a process in Mac OS X?

I have a background process running at 100% CPU on Mac OS X. All other applications are very slow because of it. I'd like to set this process to take no more than 50% so that my applications can run better. How can I do this?
Daniel Cukier
  • 3,760
  • 10
  • 37
  • 48
71
votes
4 answers

Why is the CPU usage reported by top in Linux over 100%?

I've seen the CPU usage go over 100%. How is this possible? Is it because I have four CPU cores, so 100% isn't really the max? Also, when a program does this, what else can I do in top besides using the k command?
tony_sid
  • 13,501
  • 47
  • 132
  • 191
67
votes
5 answers

Why are there multiple Chrome instances running even though I only have one window (only one tab) open?

Possible Duplicate: Multiple chrome.exe in Task Manager In Windows Task Manager it seems that I have multiple Chrome processes running, even though I only have one Chrome window open. How is this possible? I always thought each open program…
Piper
  • 910
  • 2
  • 7
  • 15
67
votes
3 answers

Linux: Is there something similar to "top" for I/O?

My disk often is utilized, but top (and htop, a custom replacement) show nothing suspicious. Is there a way to sort processes by I/O (more specific: disk) utilization? EDIT Found out using iotop that those strange processes are flush-8:16 and…
java.is.for.desktop
  • 1,688
  • 3
  • 17
  • 20
1
2 3
89 90