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.

1405 questions
52
votes
8 answers

How to automatically restart a linux background process if it fails?

I have a process which is executed by init.d script on the background. Eg: case "$1" in start) /bin/myprocess & stop) killall myprocess restart) killall myprocess /bin/myprocess & esac In certain conditions, myprocess can fail and return. Is there…
Honza
  • 623
51
votes
4 answers

How do you find the parent process of a zombie process?

How do you find the parent process of zombie processes? When the child process is something where the parent is not entirely obvious... Is there some way to list processes in tree format or something?
Jack
  • 2,011
49
votes
3 answers

How to show full command line of all processes in Windows

On Windows, in the Task Manager it is possible to see the command line of each processes but it is truncated. How can I see the complete command line of each running process?
qwertzguy
  • 2,794
46
votes
6 answers

How to limit a process to a single CPU core?

How do you limit a single process program run in a Windows environment to run only on a single CPU on a multi-core machine? Is it the same between a windowed program and a command line program? UPDATE: Reason for doing this: benchmarking various…
Jonathan
  • 3,849
46
votes
4 answers

How to identify which program has left a portion of its UI floating on my screen?

I noticed that what looks like a tooltip saying "Increase Indent" is floating homeless on my screen. Here it is with the edge of the browser window beneath it: It has attained nearly infinite Z-order and sits above anything else I can move around,…
StayOnTarget
  • 1,538
42
votes
4 answers

Why do Windows 10 foreground apps mysteriously launch as background processes?

Occasionally Task Manager shows that "Store", "Settings", and/or "Calculator" are mysteriously running as background processes. There's no corresponding foreground application, just the background processes. I haven't interactively run either during…
Andy Giesler
  • 1,621
41
votes
2 answers

What does the process 'Locum' do?

I am seeing a process titled, 'Locum' show up in my OS X process list. Does anyone know the details of what this process does?
40
votes
1 answer

How to find source process of unknown popup in Windows 7

A random popup appears in Windows 7 titled as Information with a progress bar and a clock. The window sometimes says Please wait a moment... , and the progress bar moves very slowly and disappears. I don't know the source of this popup. I tried to…
krg265
  • 511
38
votes
6 answers

Why can't you have both high instructions per cycle and high clock speed?

The Megahertz Myth became a promotional tactic due to differences between the PC's INTEL 8086 processor and Apple's Rockwell 6502 processor. The 8086 ran at 4.77MHz while the 6502 ran at 1MHz. However, instructions on the 6502 needed fewer cycles;…
dobus
  • 381
37
votes
3 answers

On Windows, how can I gracefully ask a running program to terminate?

On Unix or Linux, it's easy to gracefully ask a running application to terminate: you send it the SIGTERM signal. If its process ID is 1234, you can simply run kill 1234 or kill -s TERM 1234 or kill -15 1234 . How can I do the same thing in Windows?…
37
votes
5 answers

Which files are opened by a specific application in Windows?

Is there a way to list all files that are currently opened by a specific process in Windows? I mean files that got have an fopen , but never got an fclose by a specific process. I tried to use Sysinternals Process Monitor, but I couldn't figure out…
clamp
  • 1,292
37
votes
4 answers

How does WSL/WSL2/WSLg work without systemd?

As I've understood it, systemd is Linuxes' "master"-daemon, managing all other processes right after it has been started up and run its init-function. Since I had this (now resolved) issue, of not being able to use any systemd commands on WSL I…
36
votes
4 answers

What is this weird process I see in WSL called “plan9?”

I'm using WSL2 with Ubuntu on Windows 11 and there is a weird process called plan9 I see with htop . Here is a picture of it. ps ax output: 4 ? Sl 0:00 plan9 --control-socket 5 --log-level 4 --server-fd 6 --log-truncate Can anyone explain what that…
Zekel7
  • 371
36
votes
4 answers

How to change I/O priority of a process or thread in Win7?

Process Explorer is able to show the effective IO priority of a given thread, but not change it. Seeing as IO priority support is a comparatively new feature, most programs don't set their own IO priorities. It appears that by default the IO…
RomanSt
  • 9,989
36
votes
10 answers

Why sometimes Windows cannot kill a process?

Right now I'm trying to Run/Debug my application in Visual Studio, but it cannot create it because the last instance of the app.vshost.exe is still running. Then, by using the Task Manager I'm trying to kill it, but it just remains there with no…
1 2
3
…
93 94