Most voted "process" questions
This tag is about operating system processes. A process is an instance of a computer program that is running. Many operating systems allow multiple processes to run simultaneously. The operating system takes care of isolating processes from each other in order to ensure data integrity and also provides means for inter-process communication (IPC).
Learn more…80 questions
Sort by count of
-
31
votes2
answers1602
viewsWhat is Inter Process Communication (IPC)?
In a discussion with experienced programmers here on the site regarding competition control, the terms arose traffic lights, mutex, shared memory, monitor, and still others, which I’m beginning to…
-
25
votes4
answers4453
viewsWhat are the practical advantages of using object orientation in the day-to-day life of a development team?
Work in a company that does not use object orientation, although the language allows (and encourage). I have studied and study object orientation, and do my personal projects in OO, but I do not…
-
24
votes4
answers24580
viewsIs there a difference between Program, Thread and Process?
I wonder if there’s a difference between Thread, Process and Program? These three words are widely used in the area of Information Technology, so it would be interesting to know the difference…
-
15
votes1
answer339
viewsWhat are they and how do signals work?
Do they exist only on Unix or also on Windows? If so, what would be the equivalent on Windows system? What is the relationship with Signal Handling? A practical example of a Signal Handling can be…
-
13
votes3
answers680
viewsHow do I read the output of a loop-based process? [C#]
Everything happens correctly to start the process, but when trying to get some kind of return of its execution through any of the available redirectors, be it input, output or error, the application…
-
11
votes1
answer1156
viewsDifference between Pipes, Fork and Threads
From of that question, I was curious to learn more about the subject, so researching further, I came across more doubt on the subject. Because I saw that there is a string of ways to use Threads. We…
-
8
votes2
answers590
viewsWhat is the useshellexecute property for?
Developing an application in c# I came across the property UseShellExecute in the following code snippet: ProcessStartInfo startInfo = new ProcessStartInfo(); startInfo.CreateNoWindow = false;…
-
7
votes1
answer6958
viewsWhat would be a PID?
I’m starting to study desktop applications. I had a certain question about how I could know if a particular application is running and I was told that I could use the PID, as a solution, to detect…
-
6
votes1
answer650
viewsWhat is the difference between Getcurrentprocess and Getcurrentprocessid?
What’s the difference between the call GetCurrentProcess and the MainHandle defined below: var MainHandle: THandle; begin MainHandle := OpenProcess(PROCESS_ALL_ACCESS, false, GetCurrentProcessID);…
-
5
votes2
answers2303
viewsPrevent an application from being closed by the user through the task manager
I have a C# application that cannot be closed by the user. But even if I eliminate all the means to close the application, including by itself, it is still possible to finish the process by the task…
-
5
votes1
answer350
viewsHow to make a process wait for 'brothers'
Hello. I need to create a process tree, until the moment what I was able to do was create a side of the tree, kill everything and then create the other side. But I need to raise the whole tree first…
-
5
votes2
answers156
viewsExecution of programs in pararelo WITHOUT use of Threads
They ask me to develop a Java program, to run programs (ls, firefox) in parallel that are contained in a file. For now I have the following code: File file = new File()`; List<String> lista =…
-
5
votes1
answer672
viewsWhat are Mutexes and when is it advisable to use this feature?
I read about Mutexes and the class Mutex. However, I cannot understand clearly what Mutex is and what this class does. Since I would like to know if I can use this feature to prevent my desktop…
-
4
votes2
answers2456
viewsEnd a C# process with WPF
I have a solution that has two projects. a main project and another that serves as Updater. To perform the upgrade, within the main project, I call a console application as follows. private void…
-
4
votes1
answer2044
viewsCreating processes with Fork
I am creating a sequence of processes through the command fork, but when I went to list the processes generated by the code, I found that there was a greater amount than I had created. Because of…
-
3
votes1
answer447
viewsHow can I write values in the memory of another process?
I have the memory address, the process and the value. // Processo var p = Process.GetProcessesByName("ePSXe").FirstOrDefault(); // Endereço IntPtr addr = new IntPtr(0x00A66E11); // Valor var val =…
-
3
votes1
answer58
viewsCheck that process is running without bumping into the 15-character limit
With the following code we check if a process is running: #!/bin/bash #Verificar se processo abc está em execução if pgrep "abc" >/dev/null 2>&1 then printf "Está em execução.\n"…
-
3
votes1
answer769
viewsHow to kill a specific user process on Windows Server?
I have a C# application that at the end needs to kill a user process that ran, but as I am in a Terminal Server (Windows Server) and there are several users logged, when I put the command to kill…
-
3
votes2
answers3731
viewsLike killing lawsuits with Delphi?
I need to make an application in Delphi that finalizes processes through the image name, if this is possible tell me how.
-
3
votes3
answers1080
viewsOne process at a time PHP
I would like to know if there is a way to create a process queue. For example, whenever I have the file run processar.php, if it is already running, it would wait to be executed after the end of the…
-
3
votes2
answers2422
viewsHow to get a list of processes running windows in python?
I would like to know how to get the processes running from windows and store them in a list in python. from os import system system('tasklist') I know that the code above shows the processes, but I…
-
3
votes2
answers247
viewsI need to get a description of the task manager process
I need to get the name of the process that is active on the screen, but I need to bring equal appears in Task Manager description. For example if I use processName it will bring "Chrome" I need it…
-
3
votes2
answers1000
viewsHow to get the pid of a windows process right after the process is run
How to get the pid of a windows process right after the process is executed, similar to the command $! that retrieves the pid from the process that was executed needed in a way to grab that pid from…
-
3
votes1
answer326
viewsHow to open an executable that requires elevation via C#?
The code provided below seeks to be able to open an executable file so that it is possible to pass arguments to it once it has been opened. For the code as it is displayed, error returned is:…
-
3
votes1
answer279
viewsCannot use tskill in C#
The tskill command when used via C# (Visual Studio) returns this error: 'tskill' not recognized as an internal or external command, a operable program or a batch file However the same command when…
-
3
votes1
answer49
viewsDo instances of the same application share static objects?
I am developing a Windows Form application in C#, and this application can run simultaneously several times on the same computer. And I am doubtful whether or not I should use static objects…
-
3
votes2
answers59
viewsHow to instantiate objects in shared memory?
I have an application in which there are several parallelization modes. However, when I will parallelize through Fork() the barrier is not shared between processes, there is some difference of the…
-
2
votes2
answers134
viewsHow to display the PGID of running processes?
On Linux, I’d like to know which command I use to display the PGID of the proceedings under implementation. I saw in a reply here on Soept that we could kill a process (command Kill) using the…
-
2
votes2
answers268
viewsTaking a partial name from a process
Is there any way that I can get a process that’s running under a partial name, like what happens to like in a survey SQL? 'Cause I ask this, I got one team viewer customized here for the company.…
-
2
votes1
answer445
viewsHow to create a dynamic progress bar in R?
To follow the processing status in my routines I use the progress bars of the package pbapply, but I couldn’t find a dynamic way to follow more than one process. To illustrate the problem I…
-
2
votes1
answer1203
viewsError opening application with process.start
I have an app that when trying to run with the process.start or even direct by cmd from Windows, does not start properly (the application itself shows error), but if I go in its folder and open the…
-
2
votes0
answers1018
viewsDelphi compiled program does not open
Good afternoon, I have software written in Delphi and noticed that the following problem occurs: If I use the option to compile in debug mode, the executable is 32MB and works correctly. If I use…
-
2
votes1
answer940
viewsHow to know which is the PID of a currently running Python script?
I have a certain Python script that I want to know what is the current PID of it, through the script itself. How can I do that? Through this too, I can determine that it be executed only once?…
-
2
votes2
answers135
viewsHow to capture information from a 64-bit process that is running?
Well, I need help to capture the information of a running process. I can accomplish this task by accessing the mainmodule 32-bit processes, however, I cannot do the same with 64-bit processes. I…
-
2
votes2
answers512
viewsError creating child - Process scheduling using Fork
Write a program in C/C++ called novel.cpp that does the following: The Father process creates a Filho1 process in 10 seconds and a Filho2 process in 20 seconds and then you’re running indefinitely.…
-
2
votes1
answer59
viewsWhy is the class attribute not modified?
I only need to send a command from one process to the other, but I wanted to understand why when modifying the variable within a function, it does not appear in another function. from…
-
2
votes1
answer41
viewsHow to improve the performance of a program by dividing executions into C-linked processes?
int main(int argc, char ** argv) { int i,j; uchar *image; camera c; point eye; point lookat; int samples; int s; float rcp_samples;// = 1.0 / (float)samples; //char fname[20]; //ray * rays; //color…
-
2
votes1
answer239
viewsPython processes
I’m studying the module multiprocessing and in all the examples in python documentation there is always a if verification in the examples, I know this checks whether the file is running directly or…
-
2
votes2
answers197
viewsHow to open external process on second Monitor
I need to open an external program to stay in the second screen. I need it to be exactly embedded in the second monitor. Let’s say I want to open the notepad, I don’t want to open it on the first…
-
1
votes1
answer1537
viewsHow to open a file that is within the solution with Process.Start
I added my solution in C# a folder called "files" inside this folder will be placed some standard documents that can be analyzed when registering some projects. I have a combobox in the form for the…
-
1
votes2
answers19198
viewsScript /.bat to kill certain process on all users logged in to the computer
Well, folks, my problem is this: I have a process called gdc.exe. If a user has this process open and another user logs into the machine and tries to run the program that generates this same…
-
1
votes1
answer56
viewsProcess management in the OS
For the Operating System, a process regardless of its state is a running program? The question of proof was true or phony. I chose phony, but the answer was wrong. Can anyone explain to me why?…
-
1
votes0
answers155
viewsHow to create a System Call to extract data from an ongoing process?
I need to make a System Call that receives a PID as parameter and returns the number of bytes that this process read from the standard input, disk, and how many bytes it wrote on the USB port. As I…
-
1
votes1
answer146
viewsHow to pass more than one argument using Process + Openssl
Using the following code I pass a certain argument, then I need to pass a password that Openssl requests, but how do I do that? I tried the StandardInput but I received an exception: Additional…
-
1
votes2
answers2966
viewsError starting IIS Express Web Server - Error 0x80070020
After leaving Visual Studio one night in mode debug stopped on a line, I could no longer run the web application locally because of an error in the IIS Express. I tried to stop the IIS Express and…
-
1
votes1
answer88
viewsRun a program with internal arguments
How is it possible to create a Process, enter it without allowing any user to view the arguments? Ex: Executable: Mygame.exe Arguments: -userid 0 -userpwd 0 but without allowing the task manager or…
-
1
votes0
answers105
viewsBackground execution with Django Python
I have a web system based on Django (Python). In this app I need to show some dynamic values coming from a remote device, in which I need to place some orders every 2 minutes to log the values in…
-
1
votes0
answers10
viewsIs it possible that a lawsuit has pending files?
That is, is it possible for a process to continue running in user mode even if it has Signals left untreated, and only treats them when switching from core to user mode? Or so there is a Signal it…
-
1
votes0
answers29
viewsTrigger some kind of event when an application opens in c#
I need to stop working business users from opening many apps at the same time. For example, ABC.exe application can only be opened once on the computer (or 2x). So if you already have two instances…
-
1
votes1
answer408
views