Questions tagged [process]

This tag is about operating system processes. It may also refer to a specific construct on a given platform, e.g., the System.Diagnostics.Process class for .NET

A process is an instance of a computer program being executed. Many operating systems let multiple processes run concurrently. The operating system takes care of isolating processes one from another in order to provide data integrity and also provides means for interprocess communication (IPC).

Process contains the program code and its current activity. Depending on the operating system (OS), a process may be made up of multiple threads of execution that execute instructions concurrently.

A computer program is a passive collection of instructions; a process is the actual execution of those instructions. Several processes may be associated with the same program; for example, opening up several instances of the same program often means more than one process is being executed.

For security and reliability reasons most modern operating systems prevent direct communication between independent processes, providing strictly mediated and controlled inter-process communication functionality.

Resources

Process - Wikipedia

Processes and threads in Windows

What is a process in UNIX / Linux?

18168 questions
6
votes
2 answers

difference of pid_t and int in C

what's the difference between pid_t datatype and int when getting process id? I saw something like: pid_t getpid(void); but whats the difference between it and int getpid(void);
user9623401
6
votes
2 answers

reading data from process' memory with Python

I'm trying to read data from memory of a process by inputing the process name, then finding PID using psutil. So far I have this: import ctypes from ctypes import * from ctypes.wintypes import * import win32ui import psutil # install, not a default…
DoctorEvil
  • 453
  • 3
  • 6
  • 18
6
votes
2 answers

How to handle selenium crashes

I am currently automating tests with selenium RC which run every hour. Everything runs smoothly most of the time but there are some times where either firefox will crash or the selenium RC will just hang and because of these two issues the testing…
si-mikey
  • 183
  • 3
  • 10
6
votes
3 answers

Why does my console app not have an icon when started with Process.Start()?

I've got an app that downloads an .exe to a temporary folder and runs it with the System.Diagnostics.Process class. So far I've run two different apps with it. One is a console app, the other is a full windows app. The windows app has its icon in…
Vilx-
  • 104,512
  • 87
  • 279
  • 422
6
votes
1 answer

Can I get the L2 cache miss count of each process on the windows platform?

I want to compute the memory bandwidth of each process. Anyone can tell me how can I get the L2 cache miss for each process. Thanks Hui
HChen
  • 258
  • 1
  • 3
  • 12
6
votes
1 answer

C# Process: Using Pipes/File Descriptors

I'm trying to connect to Chromium in the same way Puppeteer does in NodeJS. This looks super simple in NodeJS. You add two more arguments to the stdio array and you have your pipes. I'm not being able to implement the same logic in Puppeteer-Sharp.…
hardkoded
  • 18,915
  • 3
  • 52
  • 64
6
votes
4 answers

Deallocate resources on process termination

How I can deallocate resources when the process gets killed by, for example, the Task Manager? Is there a way to call a function before the process gets closed?
user57528
  • 217
  • 1
  • 3
  • 8
6
votes
1 answer

c# : Close chromium browsers without close google chrome browsers

I would like to close chromium web processs without closing google chrome browser which are running The code bellow close chromium browsers but also google chrome browsers, that I don't want to : var chromeAndChomiumProcesses =…
Pipo
  • 5,170
  • 7
  • 33
  • 66
6
votes
1 answer

How to find out the number of threads a process is using on Solaris?

I know the pid of the process. top -H -p works on Linux, but I am not able to get it running on Solaris: $ top -H -p 3677 /usr/local/packages/top/bin/top-default: illegal option -- H Top version 3.5beta7 Usage: top-default [-ISbinqu] [-d x]…
Lazer
  • 90,700
  • 113
  • 281
  • 364
6
votes
3 answers

How to write "enter key pressed" to a stream?

Sorry for this odd-sounding title... I have the following situation: I want my Java program to interact with an external console. In order to "send" the individual commands to that console, I need to simulate what would be an "enter key pressed" on…
roesslerj
  • 2,611
  • 5
  • 30
  • 44
6
votes
1 answer

What is the best use of process.on('uncaughtException', ...)?

I am learning error/exception handling and I do not understand how process.on('uncaughtException', ...) is used. Can you use it the same way as try and catch, or does it only handle exceptions?
CodeHip
  • 367
  • 5
  • 18
6
votes
2 answers

What means an InvalidOperationException on Process.ExitTime "Process was not started by this object, so requested information cannot be determined."

We have a tool that manages several processes of a computer and from time to time in uncertain conditions we get an InvalidOperationExceptionwhen accessing the MSDN: Process.ExitTime property. The exception message says process was not started by…
Ignacio Soler Garcia
  • 21,122
  • 31
  • 128
  • 207
6
votes
6 answers

addition of strings in c#, how the compiler does it?

A = string.Concat("abc","def") B = "abc" + "def" A vs. B Lately I have been confused why many would say that definitely A does a much faster processing compared to B. But, the thing is they would just say because somebody said so or because it is…
Carls Jr.
  • 3,088
  • 7
  • 37
  • 57
6
votes
3 answers

Gaussian Process Posterior (Python)

I have created and sampled a jointly Gaussian prior with mean=0 using the code below: import numpy as np import matplotlib.pyplot as plt from math import pi from scipy.spatial.distance import cdist import scipy.stats as sts x_prior =…
user8188120
  • 883
  • 1
  • 15
  • 30
6
votes
1 answer

Any VM supporting Process.supportsNormalTermination==true?

A new feature of Java 9 is that it can not only forcefully kill processes (in the meaning of SIGKILL) it had created but it may also support to send a SIGTERM (in Java called "normal termination"). According to the documentation of Process one can…
JMax
  • 1,134
  • 1
  • 11
  • 20